pub enum OxidationSign {
Positive,
Negative,
Zero,
}Expand description
The sign of an oxidation-state value.
Variants§
Positive
A positive oxidation state.
Negative
A negative oxidation state.
Zero
A zero oxidation state.
Implementations§
Source§impl OxidationSign
impl OxidationSign
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true for Self::Positive.
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true for Self::Negative.
Sourcepub const fn is_zero(self) -> bool
pub const fn is_zero(self) -> bool
Returns true for Self::Zero.
Trait Implementations§
Source§impl Clone for OxidationSign
impl Clone for OxidationSign
Source§fn clone(&self) -> OxidationSign
fn clone(&self) -> OxidationSign
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 OxidationSign
impl Debug for OxidationSign
Source§impl Display for OxidationSign
impl Display for OxidationSign
Source§impl Hash for OxidationSign
impl Hash for OxidationSign
Source§impl Ord for OxidationSign
impl Ord for OxidationSign
Source§fn cmp(&self, other: &OxidationSign) -> Ordering
fn cmp(&self, other: &OxidationSign) -> 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 OxidationSign
impl PartialEq for OxidationSign
Source§impl PartialOrd for OxidationSign
impl PartialOrd for OxidationSign
impl Copy for OxidationSign
impl Eq for OxidationSign
impl StructuralPartialEq for OxidationSign
Auto Trait Implementations§
impl Freeze for OxidationSign
impl RefUnwindSafe for OxidationSign
impl Send for OxidationSign
impl Sync for OxidationSign
impl Unpin for OxidationSign
impl UnsafeUnpin for OxidationSign
impl UnwindSafe for OxidationSign
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