pub struct PhaseCalculator { /* private fields */ }Expand description
Phase calculator
Implementations§
Source§impl PhaseCalculator
impl PhaseCalculator
pub fn new() -> Self
Sourcepub fn add_phase_diagram(&mut self, diagram: PhaseDiagram)
pub fn add_phase_diagram(&mut self, diagram: PhaseDiagram)
Register a phase diagram under its diagram_id, replacing any existing entry.
Sourcepub fn get_phase_diagram(&self, diagram_id: &str) -> Option<&PhaseDiagram>
pub fn get_phase_diagram(&self, diagram_id: &str) -> Option<&PhaseDiagram>
Look up a phase diagram by id.
Sourcepub fn list_phase_diagrams(&self) -> Vec<String>
pub fn list_phase_diagrams(&self) -> Vec<String>
List the ids of all registered phase diagrams.
Sourcepub fn add_phase_transition(&mut self, transition: PhaseTransition)
pub fn add_phase_transition(&mut self, transition: PhaseTransition)
Register a phase transition under its transition_id, replacing any existing entry.
Sourcepub fn get_phase_transition(
&self,
transition_id: &str,
) -> Option<&PhaseTransition>
pub fn get_phase_transition( &self, transition_id: &str, ) -> Option<&PhaseTransition>
Look up a phase transition by id.
Sourcepub fn list_phase_transitions(&self) -> Vec<String>
pub fn list_phase_transitions(&self) -> Vec<String>
List the ids of all registered phase transitions.
Sourcepub fn add_phase_equilibrium(&mut self, equilibrium: PhaseEquilibrium)
pub fn add_phase_equilibrium(&mut self, equilibrium: PhaseEquilibrium)
Register a phase equilibrium under its equilibrium_id, replacing any existing entry.
Sourcepub fn get_phase_equilibrium(
&self,
equilibrium_id: &str,
) -> Option<&PhaseEquilibrium>
pub fn get_phase_equilibrium( &self, equilibrium_id: &str, ) -> Option<&PhaseEquilibrium>
Look up a phase equilibrium by id.
Sourcepub fn list_phase_equilibria(&self) -> Vec<String>
pub fn list_phase_equilibria(&self) -> Vec<String>
List the ids of all registered phase equilibria.
pub fn initialize(&mut self) -> Result<(), ChemistryError>
Auto Trait Implementations§
impl Freeze for PhaseCalculator
impl RefUnwindSafe for PhaseCalculator
impl Send for PhaseCalculator
impl Sync for PhaseCalculator
impl Unpin for PhaseCalculator
impl UnsafeUnpin for PhaseCalculator
impl UnwindSafe for PhaseCalculator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more