pub struct Reactant(/* private fields */);Expand description
A reactant-side reaction term.
Implementations§
Source§impl Reactant
impl Reactant
Sourcepub const fn new(term: ReactionTerm) -> Self
pub const fn new(term: ReactionTerm) -> Self
Creates a reactant wrapper.
Sourcepub const fn as_term(&self) -> &ReactionTerm
pub const fn as_term(&self) -> &ReactionTerm
Returns the wrapped reaction term.
Sourcepub fn into_term(self) -> ReactionTerm
pub fn into_term(self) -> ReactionTerm
Consumes this value and returns the wrapped reaction term.
Sourcepub const fn coefficient(&self) -> StoichiometricCoefficient
pub const fn coefficient(&self) -> StoichiometricCoefficient
Returns the stoichiometric coefficient.
Sourcepub const fn formula(&self) -> &ChemicalFormula
pub const fn formula(&self) -> &ChemicalFormula
Returns the chemical formula.
Trait Implementations§
Source§impl From<ReactionTerm> for Reactant
impl From<ReactionTerm> for Reactant
Source§fn from(term: ReactionTerm) -> Self
fn from(term: ReactionTerm) -> Self
Converts to this type from the input type.
impl Eq for Reactant
impl StructuralPartialEq for Reactant
Auto Trait Implementations§
impl Freeze for Reactant
impl RefUnwindSafe for Reactant
impl Send for Reactant
impl Sync for Reactant
impl Unpin for Reactant
impl UnsafeUnpin for Reactant
impl UnwindSafe for Reactant
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