pub struct ExcessReagent(/* private fields */);Expand description
A validated excess-reagent label.
Implementations§
Source§impl ExcessReagent
impl ExcessReagent
Sourcepub fn new(label: &str) -> Result<ExcessReagent, StoichiometryValidationError>
pub fn new(label: &str) -> Result<ExcessReagent, StoichiometryValidationError>
Creates an excess-reagent label.
§Errors
Returns StoichiometryValidationError::EmptyExcessReagentLabel 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 ExcessReagent
impl AsRef<str> for ExcessReagent
Source§impl Clone for ExcessReagent
impl Clone for ExcessReagent
Source§fn clone(&self) -> ExcessReagent
fn clone(&self) -> ExcessReagent
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 ExcessReagent
impl Debug for ExcessReagent
Source§impl Display for ExcessReagent
impl Display for ExcessReagent
Source§impl Hash for ExcessReagent
impl Hash for ExcessReagent
Source§impl Ord for ExcessReagent
impl Ord for ExcessReagent
Source§fn cmp(&self, other: &ExcessReagent) -> Ordering
fn cmp(&self, other: &ExcessReagent) -> 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 ExcessReagent
impl PartialEq for ExcessReagent
Source§impl PartialOrd for ExcessReagent
impl PartialOrd for ExcessReagent
Source§impl TryFrom<&str> for ExcessReagent
impl TryFrom<&str> for ExcessReagent
Source§type Error = StoichiometryValidationError
type Error = StoichiometryValidationError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<ExcessReagent, <ExcessReagent as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<ExcessReagent, <ExcessReagent as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for ExcessReagent
impl StructuralPartialEq for ExcessReagent
Auto Trait Implementations§
impl Freeze for ExcessReagent
impl RefUnwindSafe for ExcessReagent
impl Send for ExcessReagent
impl Sync for ExcessReagent
impl Unpin for ExcessReagent
impl UnsafeUnpin for ExcessReagent
impl UnwindSafe for ExcessReagent
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