pub struct Solvent(/* private fields */);Expand description
A lightweight solvent descriptor.
Implementations§
Source§impl Solvent
impl Solvent
Sourcepub fn new(label: &str) -> Result<Self, ReactionValidationError>
pub fn new(label: &str) -> Result<Self, ReactionValidationError>
Creates a solvent descriptor.
§Errors
Returns ReactionValidationError::EmptySolventLabel when label is empty after
trimming.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the descriptor and returns the owned text.
Trait Implementations§
Source§impl From<Solvent> for ReactionCondition
impl From<Solvent> for ReactionCondition
Source§impl Ord for Solvent
impl Ord for Solvent
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 Solvent
impl PartialOrd for Solvent
impl Eq for Solvent
impl StructuralPartialEq for Solvent
Auto Trait Implementations§
impl Freeze for Solvent
impl RefUnwindSafe for Solvent
impl Send for Solvent
impl Sync for Solvent
impl Unpin for Solvent
impl UnsafeUnpin for Solvent
impl UnwindSafe for Solvent
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