pub struct LimitingReagent(/* private fields */);Expand description
A validated limiting-reagent label.
Implementations§
Source§impl LimitingReagent
impl LimitingReagent
Sourcepub fn new(label: &str) -> Result<Self, StoichiometryValidationError>
pub fn new(label: &str) -> Result<Self, StoichiometryValidationError>
Creates a limiting-reagent label.
§Errors
Returns StoichiometryValidationError::EmptyLimitingReagentLabel when label
is empty or whitespace only.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the label and returns the owned text.
Trait Implementations§
Source§impl AsRef<str> for LimitingReagent
impl AsRef<str> for LimitingReagent
Source§impl Clone for LimitingReagent
impl Clone for LimitingReagent
Source§fn clone(&self) -> LimitingReagent
fn clone(&self) -> LimitingReagent
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 LimitingReagent
impl Debug for LimitingReagent
Source§impl Display for LimitingReagent
impl Display for LimitingReagent
Source§impl Hash for LimitingReagent
impl Hash for LimitingReagent
Source§impl Ord for LimitingReagent
impl Ord for LimitingReagent
Source§fn cmp(&self, other: &LimitingReagent) -> Ordering
fn cmp(&self, other: &LimitingReagent) -> 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 LimitingReagent
impl PartialEq for LimitingReagent
Source§impl PartialOrd for LimitingReagent
impl PartialOrd for LimitingReagent
Source§impl TryFrom<&str> for LimitingReagent
impl TryFrom<&str> for LimitingReagent
impl Eq for LimitingReagent
impl StructuralPartialEq for LimitingReagent
Auto Trait Implementations§
impl Freeze for LimitingReagent
impl RefUnwindSafe for LimitingReagent
impl Send for LimitingReagent
impl Sync for LimitingReagent
impl Unpin for LimitingReagent
impl UnsafeUnpin for LimitingReagent
impl UnwindSafe for LimitingReagent
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