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]
fn clone(&self) -> Succ<N>
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<N: PartialEq> PartialEq for Succ<N>
[src]
fn eq(&self, __arg_0: &Succ<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Succ<N>) -> bool
This method tests for !=
.
impl<N: Eq> Eq for Succ<N>
[src]
impl<N: PartialOrd> PartialOrd for Succ<N>
[src]
fn partial_cmp(&self, __arg_0: &Succ<N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Succ<N>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Succ<N>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Succ<N>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Succ<N>) -> bool
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]
fn cmp(&self, __arg_0: &Succ<N>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<N: NumType> NumType for Succ<N>
[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<N: PosType> PosType for Succ<N>
[src]
impl<N: NumType> Into<i64> for Succ<N>
[src]
impl<N: NumType> Into<i32> for Succ<N>
[src]
impl<N: NumType> Into<i16> for Succ<N>
[src]
impl<N: NumType> Into<i8> for Succ<N>
[src]
impl<N: NumType> Into<isize> for Succ<N>
[src]
impl<N: PosType> Into<u64> for Succ<N>
[src]
impl<N: PosType> Into<u32> for Succ<N>
[src]
impl<N: PosType> Into<u16> for Succ<N>
[src]
impl<N: PosType> Into<u8> for Succ<N>
[src]
impl<N: PosType> Into<usize> for Succ<N>
[src]
impl<A: PosType, B: NegType> Neg for Succ<A> where
A: Neg<Out = B>,
[src]
A: Neg<Out = B>,
impl<A: PosType> Incr for Succ<A>
[src]
impl<A: PosType> Decr for Succ<A>
[src]
type Out = A
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]
RHS: Incr<Out = B>,
A: Add<B>,
impl<A: PosType, B: NumType> Halve for Succ<Succ<A>> where
A: Halve<Out = B>,
[src]
A: Halve<Out = B>,
impl<A: PosType, RHS, B: NumType> Mul<RHS> for Succ<A> where
A: Mul<RHS, Out = B>,
RHS: Add<B>,
[src]
A: Mul<RHS, Out = B>,
RHS: Add<B>,
impl<A: NumType, B: NumType, C: NumType> Div<Succ<B>> for Succ<A> where
A: Sub<B, Out = C>,
C: Div<Succ<B>>,
[src]
A: Sub<B, Out = C>,
C: Div<Succ<B>>,
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]
N: Neg<Out = PP>,
Succ<P>: Div<Succ<PP>, Out = Succ<PPP>>,
Succ<PPP>: Neg,