Struct FormulaOxidationState
pub struct FormulaOxidationState { /* private fields */ }Expand description
Oxidation-state assignments in a formula or caller-defined formula context.
Implementations§
§impl FormulaOxidationState
impl FormulaOxidationState
pub fn new(
formula_label: &str,
states: OxidationStateSet,
) -> Result<FormulaOxidationState, OxidationStateValidationError>
pub fn new( formula_label: &str, states: OxidationStateSet, ) -> Result<FormulaOxidationState, OxidationStateValidationError>
Creates formula-context oxidation-state assignments.
§Errors
Returns OxidationStateValidationError::EmptyFormulaLabel when formula_label
is empty or whitespace only.
pub fn formula_label(&self) -> &str
pub fn formula_label(&self) -> &str
Returns the formula or formula-context label.
pub const fn states(&self) -> &OxidationStateSet
pub const fn states(&self) -> &OxidationStateSet
Returns the oxidation-state assignments.
pub fn into_parts(self) -> (String, OxidationStateSet)
pub fn into_parts(self) -> (String, OxidationStateSet)
Consumes the value and returns its parts.
Trait Implementations§
§impl Clone for FormulaOxidationState
impl Clone for FormulaOxidationState
§fn clone(&self) -> FormulaOxidationState
fn clone(&self) -> FormulaOxidationState
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 more§impl Debug for FormulaOxidationState
impl Debug for FormulaOxidationState
§impl Default for FormulaOxidationState
impl Default for FormulaOxidationState
§fn default() -> FormulaOxidationState
fn default() -> FormulaOxidationState
Returns the “default value” for a type. Read more
§impl Display for FormulaOxidationState
impl Display for FormulaOxidationState
§impl PartialEq for FormulaOxidationState
impl PartialEq for FormulaOxidationState
impl Eq for FormulaOxidationState
impl StructuralPartialEq for FormulaOxidationState
Auto Trait Implementations§
impl Freeze for FormulaOxidationState
impl RefUnwindSafe for FormulaOxidationState
impl Send for FormulaOxidationState
impl Sync for FormulaOxidationState
impl Unpin for FormulaOxidationState
impl UnsafeUnpin for FormulaOxidationState
impl UnwindSafe for FormulaOxidationState
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