pub enum PermutationSign {
Positive,
Negative,
}
Expand description
A type representing the sign (parity) of a permutation (wiki)
Variants§
Implementations§
Source§impl PermutationSign
impl PermutationSign
pub fn is_positive(&self) -> bool
pub fn is_negative(&self) -> bool
Trait Implementations§
Source§impl Clone for PermutationSign
impl Clone for PermutationSign
Source§fn clone(&self) -> PermutationSign
fn clone(&self) -> PermutationSign
Returns a copy 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 PermutationSign
impl Debug for PermutationSign
Source§impl From<PermutationSign> for f32
impl From<PermutationSign> for f32
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for f64
impl From<PermutationSign> for f64
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for i128
impl From<PermutationSign> for i128
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for i16
impl From<PermutationSign> for i16
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for i32
impl From<PermutationSign> for i32
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for i64
impl From<PermutationSign> for i64
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for i8
impl From<PermutationSign> for i8
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl From<PermutationSign> for isize
impl From<PermutationSign> for isize
Source§fn from(s: PermutationSign) -> Self
fn from(s: PermutationSign) -> Self
Converts to this type from the input type.
Source§impl Hash for PermutationSign
impl Hash for PermutationSign
Source§impl Ord for PermutationSign
impl Ord for PermutationSign
Source§fn cmp(&self, other: &PermutationSign) -> Ordering
fn cmp(&self, other: &PermutationSign) -> 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 PermutationSign
impl PartialEq for PermutationSign
Source§impl PartialOrd for PermutationSign
impl PartialOrd for PermutationSign
impl Copy for PermutationSign
impl Eq for PermutationSign
impl StructuralPartialEq for PermutationSign
Auto Trait Implementations§
impl Freeze for PermutationSign
impl RefUnwindSafe for PermutationSign
impl Send for PermutationSign
impl Sync for PermutationSign
impl Unpin for PermutationSign
impl UnwindSafe for PermutationSign
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