pub struct BinPackingOutput {
pub bins: Vec<Vec<usize>>,
pub bins_used: usize,
}Expand description
Output for bin packing
Fields§
§bins: Vec<Vec<usize>>Each bin contains a list of item indices
bins_used: usizeNumber of bins used
Implementations§
Trait Implementations§
Source§impl Clone for BinPackingOutput
impl Clone for BinPackingOutput
Source§fn clone(&self) -> BinPackingOutput
fn clone(&self) -> BinPackingOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinPackingOutput
impl Debug for BinPackingOutput
Source§impl<'de> Deserialize<'de> for BinPackingOutput
impl<'de> Deserialize<'de> for BinPackingOutput
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 BinPackingOutput
impl RefUnwindSafe for BinPackingOutput
impl Send for BinPackingOutput
impl Sync for BinPackingOutput
impl Unpin for BinPackingOutput
impl UnsafeUnpin for BinPackingOutput
impl UnwindSafe for BinPackingOutput
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