pub struct TheoreticalYield(/* private fields */);Expand description
A positive finite theoretical yield value.
Implementations§
Source§impl TheoreticalYield
impl TheoreticalYield
Sourcepub fn new(value: f64) -> Result<TheoreticalYield, StoichiometryValidationError>
pub fn new(value: f64) -> Result<TheoreticalYield, StoichiometryValidationError>
Creates a theoretical yield value.
§Errors
Returns StoichiometryValidationError::NonFiniteYield when value is not
finite, or StoichiometryValidationError::NonPositiveTheoreticalYield when it
is zero or negative.
Trait Implementations§
Source§impl Clone for TheoreticalYield
impl Clone for TheoreticalYield
Source§fn clone(&self) -> TheoreticalYield
fn clone(&self) -> TheoreticalYield
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 TheoreticalYield
impl Debug for TheoreticalYield
Source§impl Display for TheoreticalYield
impl Display for TheoreticalYield
Source§impl PartialEq for TheoreticalYield
impl PartialEq for TheoreticalYield
Source§impl PartialOrd for TheoreticalYield
impl PartialOrd for TheoreticalYield
impl Copy for TheoreticalYield
impl StructuralPartialEq for TheoreticalYield
Auto Trait Implementations§
impl Freeze for TheoreticalYield
impl RefUnwindSafe for TheoreticalYield
impl Send for TheoreticalYield
impl Sync for TheoreticalYield
impl Unpin for TheoreticalYield
impl UnsafeUnpin for TheoreticalYield
impl UnwindSafe for TheoreticalYield
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