[][src]Enum algebraics::util::Sign

pub enum Sign {
    Negative,
    Positive,
}

Variants

Negative
Positive

Methods

impl Sign[src]

pub fn new<T: PartialOrd + Zero>(v: &T) -> Option<Sign>[src]

Trait Implementations

impl From<bool> for Sign[src]

impl From<Sign> for bool[src]

impl Clone for Sign[src]

impl Copy for Sign[src]

impl Default for Sign[src]

impl Eq for Sign[src]

impl Ord for Sign[src]

impl PartialEq<Sign> for Sign[src]

impl PartialOrd<Sign> for Sign[src]

impl Debug for Sign[src]

impl Neg for Sign[src]

type Output = Sign

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Sign[src]

type Output = Sign

The resulting type after applying the - operator.

impl Not for Sign[src]

type Output = Sign

The resulting type after applying the ! operator.

impl<'_> Not for &'_ Sign[src]

type Output = Sign

The resulting type after applying the ! operator.

impl BitAnd<Sign> for Sign[src]

type Output = Sign

The resulting type after applying the & operator.

impl<'_> BitAnd<Sign> for &'_ Sign[src]

type Output = Sign

The resulting type after applying the & operator.

impl<'_> BitAnd<&'_ Sign> for Sign[src]

type Output = Sign

The resulting type after applying the & operator.

impl<'a, 'b> BitAnd<&'a Sign> for &'b Sign[src]

type Output = Sign

The resulting type after applying the & operator.

impl BitOr<Sign> for Sign[src]

type Output = Sign

The resulting type after applying the | operator.

impl<'_> BitOr<Sign> for &'_ Sign[src]

type Output = Sign

The resulting type after applying the | operator.

impl<'_> BitOr<&'_ Sign> for Sign[src]

type Output = Sign

The resulting type after applying the | operator.

impl<'a, 'b> BitOr<&'a Sign> for &'b Sign[src]

type Output = Sign

The resulting type after applying the | operator.

impl BitXor<Sign> for Sign[src]

type Output = Sign

The resulting type after applying the ^ operator.

impl<'_> BitXor<Sign> for &'_ Sign[src]

type Output = Sign

The resulting type after applying the ^ operator.

impl<'_> BitXor<&'_ Sign> for Sign[src]

type Output = Sign

The resulting type after applying the ^ operator.

impl<'a, 'b> BitXor<&'a Sign> for &'b Sign[src]

type Output = Sign

The resulting type after applying the ^ operator.

impl BitAndAssign<Sign> for Sign[src]

impl<'_> BitAndAssign<&'_ Sign> for Sign[src]

impl BitOrAssign<Sign> for Sign[src]

impl<'_> BitOrAssign<&'_ Sign> for Sign[src]

impl BitXorAssign<Sign> for Sign[src]

impl<'_> BitXorAssign<&'_ Sign> for Sign[src]

impl Hash for Sign[src]

impl StructuralPartialEq for Sign[src]

impl StructuralEq for Sign[src]

Auto Trait Implementations

impl Send for Sign

impl Sync for Sign

impl Unpin for Sign

impl UnwindSafe for Sign

impl RefUnwindSafe for Sign

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]