pub struct SoftRequirement {
pub weight: f64,
pub bins: Vec<String>,
}Expand description
A soft requirement (preference) for an item to be packed to a set of bins
Fields§
§weight: f64§bins: Vec<String>Trait Implementations§
Source§impl Clone for SoftRequirement
impl Clone for SoftRequirement
Source§fn clone(&self) -> SoftRequirement
fn clone(&self) -> SoftRequirement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SoftRequirement
impl Debug for SoftRequirement
Source§impl<'de> Deserialize<'de> for SoftRequirement
impl<'de> Deserialize<'de> for SoftRequirement
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
Auto Trait Implementations§
impl Freeze for SoftRequirement
impl RefUnwindSafe for SoftRequirement
impl Send for SoftRequirement
impl Sync for SoftRequirement
impl Unpin for SoftRequirement
impl UnwindSafe for SoftRequirement
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