Struct tylar::Succ [] [src]

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

The successor of N, i.e. a positive number.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: PartialEq> PartialEq for Succ<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 Succ<N>
[src]

impl<N: PartialOrd> PartialOrd for Succ<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 Succ<N>
[src]

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

impl<N: NumType> NumType for Succ<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: PosType> PosType for Succ<N>
[src]

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl<N: PosType> Into<u64> for Succ<N>
[src]

Performs the conversion.

impl<N: PosType> Into<u32> for Succ<N>
[src]

Performs the conversion.

impl<N: PosType> Into<u16> for Succ<N>
[src]

Performs the conversion.

impl<N: PosType> Into<u8> for Succ<N>
[src]

Performs the conversion.

impl<N: PosType> Into<usize> for Succ<N>
[src]

Performs the conversion.

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

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

impl<A: PosType> Incr for Succ<A>
[src]

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

impl<A: PosType> Decr for Succ<A>
[src]

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

impl<A: PosType, RHS, B: NumType> Add<RHS> for Succ<A> where
    RHS: Incr<Out = B>,
    A: Add<B>, 
[src]

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

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

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

impl<A: PosType, RHS, B: NumType> Mul<RHS> for Succ<A> where
    A: Mul<RHS, Out = B>,
    RHS: Add<B>, 
[src]

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

impl<A: NumType, B: NumType, C: NumType> Div<Succ<B>> for Succ<A> where
    A: Sub<B, Out = C>,
    C: Div<Succ<B>>, 
[src]

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

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

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