pub enum ChargeSign {
Positive,
Negative,
}Expand description
The sign of an ionic charge.
Variants§
Implementations§
Source§impl ChargeSign
impl ChargeSign
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true for a positive charge sign.
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true for a negative charge sign.
Trait Implementations§
Source§impl Clone for ChargeSign
impl Clone for ChargeSign
Source§fn clone(&self) -> ChargeSign
fn clone(&self) -> ChargeSign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChargeSign
impl Debug for ChargeSign
Source§impl Display for ChargeSign
impl Display for ChargeSign
Source§impl Hash for ChargeSign
impl Hash for ChargeSign
Source§impl Ord for ChargeSign
impl Ord for ChargeSign
Source§fn cmp(&self, other: &ChargeSign) -> Ordering
fn cmp(&self, other: &ChargeSign) -> Ordering
1.21.0 (const: unstable) · 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 ChargeSign
impl PartialEq for ChargeSign
Source§fn eq(&self, other: &ChargeSign) -> bool
fn eq(&self, other: &ChargeSign) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ChargeSign
impl PartialOrd for ChargeSign
impl Copy for ChargeSign
impl Eq for ChargeSign
impl StructuralPartialEq for ChargeSign
Auto Trait Implementations§
impl Freeze for ChargeSign
impl RefUnwindSafe for ChargeSign
impl Send for ChargeSign
impl Sync for ChargeSign
impl Unpin for ChargeSign
impl UnsafeUnpin for ChargeSign
impl UnwindSafe for ChargeSign
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