Struct tylar::Pred [] [src]

pub struct Pred<N> { /* fields omitted */ }

The predecessor of N, i.e. a negative number.

Trait Implementations

impl<N: Copy> Copy for Pred<N>
[src]

impl<N: Clone> Clone for Pred<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: PartialEq> PartialEq for Pred<N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Eq> Eq for Pred<N>
[src]

impl<N: PartialOrd> PartialOrd for Pred<N>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<N: Ord> Ord for Pred<N>
[src]

This method returns an Ordering between self and other. Read more

impl<N: NumType> NumType for Pred<N>
[src]

Creates a new instance of this number type, which is actually a no-op, since number types are zero-sized. Instances are useful, however, to be converted into actual integer values, using implementations of the Into trait. Read more

impl<N: NegType> NegType for Pred<N>
[src]

impl<N: NumType> Into<i64> for Pred<N>
[src]

Performs the conversion.

impl<N: NumType> Into<i32> for Pred<N>
[src]

Performs the conversion.

impl<N: NumType> Into<i16> for Pred<N>
[src]

Performs the conversion.

impl<N: NumType> Into<i8> for Pred<N>
[src]

Performs the conversion.

impl<N: NumType> Into<isize> for Pred<N>
[src]

Performs the conversion.

impl<A: NegType, B: PosType> Neg for Pred<A> where
    A: Neg<Out = B>, 
[src]

Result of the operation, i.e. Out = –Self.

impl<A: NegType> Incr for Pred<A>
[src]

Result of the operation, i.e. Out = Self + 1.

impl<A: NegType> Decr for Pred<A>
[src]

Result of the operation, i.e. Out = Self – 1.

impl<A: NegType, RHS, B: NumType> Add<RHS> for Pred<A> where
    RHS: Decr<Out = B>,
    A: Add<B>, 
[src]

Result of the operation, i.e. Out = Self + RHS.

impl<A: NegType, B: NumType> Halve for Pred<Pred<A>> where
    A: Halve<Out = B>, 
[src]

Result of the operation, i.e. Out = Self / 2.

impl<A: NegType, RHS, B, C: NumType> Mul<RHS> for Pred<A> where
    A: Mul<RHS, Out = C>,
    RHS: Neg<Out = B>,
    B: Add<C>, 
[src]

Result of the operation, i.e. Out = Self * RHS.

impl<N: NegType, NN: NegType, P: PosType, PP: PosType> Div<Pred<NN>> for Pred<N> where
    N: Neg<Out = P>,
    NN: Neg<Out = PP>,
    Succ<P>: Div<Succ<PP>>, 
[src]

Result of the operation, i.e. Out = Self / RHS.

impl<P: NumType, N: NegType, PP: NumType, PPP: NumType> Div<Succ<P>> for Pred<N> where
    N: Neg<Out = PP>,
    Succ<PP>: Div<Succ<P>, Out = Succ<PPP>>,
    Succ<PPP>: Neg
[src]

Result of the operation, i.e. Out = Self / RHS.