pub struct CompartmentId(pub u8);Expand description
Compact compartment index. Stored as u8 so per-metabolite compartment
membership is a cheap vector of bytes.
Tuple Fields§
§0: u8Implementations§
Source§impl CompartmentId
impl CompartmentId
pub const CYTOSOL: CompartmentId
pub const EXTRACELLULAR: CompartmentId
pub const PERIPLASM: CompartmentId
Trait Implementations§
Source§impl Clone for CompartmentId
impl Clone for CompartmentId
Source§fn clone(&self) -> CompartmentId
fn clone(&self) -> CompartmentId
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 CompartmentId
impl Debug for CompartmentId
Source§impl<'de> Deserialize<'de> for CompartmentId
impl<'de> Deserialize<'de> for CompartmentId
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
Source§impl Hash for CompartmentId
impl Hash for CompartmentId
Source§impl Ord for CompartmentId
impl Ord for CompartmentId
Source§fn cmp(&self, other: &CompartmentId) -> Ordering
fn cmp(&self, other: &CompartmentId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompartmentId
impl PartialEq for CompartmentId
Source§impl PartialOrd for CompartmentId
impl PartialOrd for CompartmentId
Source§impl Serialize for CompartmentId
impl Serialize for CompartmentId
impl Copy for CompartmentId
impl Eq for CompartmentId
impl StructuralPartialEq for CompartmentId
Auto Trait Implementations§
impl Freeze for CompartmentId
impl RefUnwindSafe for CompartmentId
impl Send for CompartmentId
impl Sync for CompartmentId
impl Unpin for CompartmentId
impl UnsafeUnpin for CompartmentId
impl UnwindSafe for CompartmentId
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