pub struct Equilibrium { /* private fields */ }Implementations§
Source§impl Equilibrium
impl Equilibrium
Sourcepub fn concentration(&self, name: &str) -> Option<f64>
pub fn concentration(&self, name: &str) -> Option<f64>
Look up a concentration by species name (monomer or complex).
Sourcepub fn monomer_names(&self) -> &[String]
pub fn monomer_names(&self) -> &[String]
Monomer names in the order they were added.
Sourcepub fn complex_names(&self) -> &[String]
pub fn complex_names(&self) -> &[String]
Complex names in the order they were added.
Sourcepub fn free_monomer_concentrations(&self) -> &[f64]
pub fn free_monomer_concentrations(&self) -> &[f64]
Free monomer concentrations (same order as monomer_names).
Sourcepub fn complex_concentrations(&self) -> &[f64]
pub fn complex_concentrations(&self) -> &[f64]
Complex concentrations (same order as complex_names).
Sourcepub fn converged_fully(&self) -> bool
pub fn converged_fully(&self) -> bool
Whether the solver achieved full convergence (relative tolerance 1e-7).
Returns false if the solver accepted the result at a relaxed tolerance
(1e-4) due to stagnation at f64 precision limits. In practice, results
with relaxed convergence are still accurate for most purposes, but
callers doing high-precision work should check this flag.
Trait Implementations§
Source§impl Clone for Equilibrium
impl Clone for Equilibrium
Source§fn clone(&self) -> Equilibrium
fn clone(&self) -> Equilibrium
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 moreAuto Trait Implementations§
impl Freeze for Equilibrium
impl RefUnwindSafe for Equilibrium
impl Send for Equilibrium
impl Sync for Equilibrium
impl Unpin for Equilibrium
impl UnsafeUnpin for Equilibrium
impl UnwindSafe for Equilibrium
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.