pub struct WeightModel {
pub system_weights: Vec<SystemAspectWeight>,
}Expand description
A readable, editable table of (system, aspect) → weight. The interpretive core of the card, exposed
rather than hidden.
Fields§
§system_weights: Vec<SystemAspectWeight>Implementations§
Source§impl WeightModel
impl WeightModel
Sourcepub fn weight_for(&self, system_id: &str, aspect: Aspect) -> u32
pub fn weight_for(&self, system_id: &str, aspect: Aspect) -> u32
The weight for (system_id, aspect) (default 0 if unlisted).
Trait Implementations§
Source§impl Clone for WeightModel
impl Clone for WeightModel
Source§impl Debug for WeightModel
impl Debug for WeightModel
Source§impl Default for WeightModel
impl Default for WeightModel
Source§impl<'de> Deserialize<'de> for WeightModel
impl<'de> Deserialize<'de> for WeightModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WeightModel
Source§impl PartialEq for WeightModel
impl PartialEq for WeightModel
Source§impl Serialize for WeightModel
impl Serialize for WeightModel
impl StructuralPartialEq for WeightModel
Auto Trait Implementations§
impl Freeze for WeightModel
impl RefUnwindSafe for WeightModel
impl Send for WeightModel
impl Sync for WeightModel
impl Unpin for WeightModel
impl UnsafeUnpin for WeightModel
impl UnwindSafe for WeightModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more