Struct RomanOxidationState
pub struct RomanOxidationState { /* private fields */ }Expand description
A Roman numeral representation of a common oxidation-state magnitude.
Implementations§
§impl RomanOxidationState
impl RomanOxidationState
pub const fn new(magnitude: OxidationMagnitude) -> Option<RomanOxidationState>
pub const fn new(magnitude: OxidationMagnitude) -> Option<RomanOxidationState>
Creates a Roman oxidation-state label from a nonzero magnitude.
pub const fn from_state(state: OxidationState) -> Option<RomanOxidationState>
pub const fn from_state(state: OxidationState) -> Option<RomanOxidationState>
Creates a Roman oxidation-state label from an oxidation state.
pub const fn magnitude(self) -> OxidationMagnitude
pub const fn magnitude(self) -> OxidationMagnitude
Returns the magnitude represented by this Roman label.
Trait Implementations§
§impl Clone for RomanOxidationState
impl Clone for RomanOxidationState
§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 more§impl Debug for RomanOxidationState
impl Debug for RomanOxidationState
§impl Display for RomanOxidationState
impl Display for RomanOxidationState
§impl Hash for RomanOxidationState
impl Hash for RomanOxidationState
§impl Ord for RomanOxidationState
impl Ord for RomanOxidationState
§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
§impl PartialEq for RomanOxidationState
impl PartialEq for RomanOxidationState
§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