pub struct RomanOxidationState { /* private fields */ }Expand description
A Roman numeral representation of a common oxidation-state magnitude.
Implementations§
Source§impl RomanOxidationState
impl RomanOxidationState
Sourcepub const fn new(magnitude: OxidationMagnitude) -> Option<Self>
pub const fn new(magnitude: OxidationMagnitude) -> Option<Self>
Creates a Roman oxidation-state label from a nonzero magnitude.
Sourcepub const fn from_state(state: OxidationState) -> Option<Self>
pub const fn from_state(state: OxidationState) -> Option<Self>
Creates a Roman oxidation-state label from an oxidation state.
Sourcepub const fn magnitude(self) -> OxidationMagnitude
pub const fn magnitude(self) -> OxidationMagnitude
Returns the magnitude represented by this Roman label.
Trait Implementations§
Source§impl Clone for RomanOxidationState
impl Clone for RomanOxidationState
Source§fn clone(&self) -> RomanOxidationState
fn clone(&self) -> RomanOxidationState
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 RomanOxidationState
impl Debug for RomanOxidationState
Source§impl Display for RomanOxidationState
impl Display for RomanOxidationState
Source§impl Hash for RomanOxidationState
impl Hash for RomanOxidationState
Source§impl Ord for RomanOxidationState
impl Ord for RomanOxidationState
Source§fn cmp(&self, other: &RomanOxidationState) -> Ordering
fn cmp(&self, other: &RomanOxidationState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RomanOxidationState
impl PartialEq for RomanOxidationState
Source§impl PartialOrd for RomanOxidationState
impl PartialOrd for RomanOxidationState
impl Copy for RomanOxidationState
impl Eq for RomanOxidationState
impl StructuralPartialEq for RomanOxidationState
Auto Trait Implementations§
impl Freeze for RomanOxidationState
impl RefUnwindSafe for RomanOxidationState
impl Send for RomanOxidationState
impl Sync for RomanOxidationState
impl Unpin for RomanOxidationState
impl UnsafeUnpin for RomanOxidationState
impl UnwindSafe for RomanOxidationState
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