pub struct Product(/* private fields */);Expand description
A product-side reaction term.
Implementations§
Source§impl Product
impl Product
Sourcepub const fn new(term: ReactionTerm) -> Product
pub const fn new(term: ReactionTerm) -> Product
Creates a product 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 Product
impl From<ReactionTerm> for Product
Source§fn from(term: ReactionTerm) -> Product
fn from(term: ReactionTerm) -> Product
Converts to this type from the input type.
impl Eq for Product
impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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