pub enum PhaseCM {
Liquid,
Gas,
}Expand description
Phase name in compartment model
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhaseCM
impl<'de> Deserialize<'de> for PhaseCM
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhaseCM, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhaseCM, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for PhaseCM
Parses a phase from either its long name (liquid, gas) or its
PhaseCM::identifier (L, G), ignoring case.
impl FromStr for PhaseCM
Parses a phase from either its long name (liquid, gas) or its
PhaseCM::identifier (L, G), ignoring case.
Source§impl Ord for PhaseCM
impl Ord for PhaseCM
1.21.0 (const: unstable) · 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 PartialOrd for PhaseCM
impl PartialOrd for PhaseCM
Source§impl Serialize for PhaseCM
impl Serialize for PhaseCM
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PhaseCM
impl Eq for PhaseCM
impl StructuralPartialEq for PhaseCM
Auto Trait Implementations§
impl Freeze for PhaseCM
impl RefUnwindSafe for PhaseCM
impl Send for PhaseCM
impl Sync for PhaseCM
impl Unpin for PhaseCM
impl UnsafeUnpin for PhaseCM
impl UnwindSafe for PhaseCM
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.