Struct tylar::Zero [] [src]

pub struct Zero;

The number type for zero (0).

Trait Implementations

impl Copy for Zero
[src]

impl Clone for Zero
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Zero
[src]

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

This method tests for !=.

impl Eq for Zero
[src]

impl PartialOrd for Zero
[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 Ord for Zero
[src]

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

impl NumType for Zero
[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 PosType for Zero
[src]

impl NegType for Zero
[src]

impl Into<i64> for Zero
[src]

Performs the conversion.

impl Into<i32> for Zero
[src]

Performs the conversion.

impl Into<i16> for Zero
[src]

Performs the conversion.

impl Into<i8> for Zero
[src]

Performs the conversion.

impl Into<isize> for Zero
[src]

Performs the conversion.

impl Into<u64> for Zero
[src]

Performs the conversion.

impl Into<u32> for Zero
[src]

Performs the conversion.

impl Into<u16> for Zero
[src]

Performs the conversion.

impl Into<u8> for Zero
[src]

Performs the conversion.

impl Into<usize> for Zero
[src]

Performs the conversion.

impl Neg for Zero
[src]

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

impl Incr for Zero
[src]

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

impl Decr for Zero
[src]

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

impl<RHS: NumType> Add<RHS> for Zero
[src]

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

impl Halve for Zero
[src]

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

impl<N: NumType> Mul<N> for Zero
[src]

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

impl<A: PosType> Div<Succ<A>> for Zero
[src]

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

impl<A: NegType> Div<Pred<A>> for Zero
[src]

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