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]
fn clone(&self) -> Zero
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Zero
[src]
fn eq(&self, __arg_0: &Zero) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Zero
[src]
impl PartialOrd for Zero
[src]
fn partial_cmp(&self, __arg_0: &Zero) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
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]
fn cmp(&self, __arg_0: &Zero) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl NumType for Zero
[src]
fn new() -> Self
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]
impl Into<i32> for Zero
[src]
impl Into<i16> for Zero
[src]
impl Into<i8> for Zero
[src]
impl Into<isize> for Zero
[src]
impl Into<u64> for Zero
[src]
impl Into<u32> for Zero
[src]
impl Into<u16> for Zero
[src]
impl Into<u8> for Zero
[src]
impl Into<usize> for Zero
[src]
impl Neg for Zero
[src]
impl Incr for Zero
[src]
impl Decr for Zero
[src]
impl<RHS: NumType> Add<RHS> for Zero
[src]
type Out = RHS
Result of the operation, i.e. Out
= Self
+ RHS
.