Enum ChargeSign
pub enum ChargeSign {
Positive,
Negative,
}Expand description
The sign of an ionic charge.
Variants§
Implementations§
§impl ChargeSign
impl ChargeSign
pub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true for a positive charge sign.
pub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true for a negative charge sign.
Trait Implementations§
§impl Clone for ChargeSign
impl Clone for ChargeSign
§fn clone(&self) -> ChargeSign
fn clone(&self) -> ChargeSign
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 ChargeSign
impl Debug for ChargeSign
§impl Display for ChargeSign
impl Display for ChargeSign
§impl Hash for ChargeSign
impl Hash for ChargeSign
§impl Ord for ChargeSign
impl Ord for ChargeSign
§impl PartialEq for ChargeSign
impl PartialEq for ChargeSign
§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