pub struct CompactCompound {
pub pairs: Vec<(u8, u8)>,
}Expand description
A more compact compound representation: [(element_id, count)] Example: H2O -> [(1, 2), (8, 1)]
Fields§
§pairs: Vec<(u8, u8)>Implementations§
Trait Implementations§
Source§impl Clone for CompactCompound
impl Clone for CompactCompound
Source§fn clone(&self) -> CompactCompound
fn clone(&self) -> CompactCompound
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 moreAuto Trait Implementations§
impl Freeze for CompactCompound
impl RefUnwindSafe for CompactCompound
impl Send for CompactCompound
impl Sync for CompactCompound
impl Unpin for CompactCompound
impl UnwindSafe for CompactCompound
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