Trait typenum::type_operators::Max[][src]

pub trait Max<Rhs = Self> {
    type Output;
    fn max(self, rhs: Rhs) -> Self::Output;
}

A type operator that returns the maximum of Self and Rhs.

Associated Types

type Output[src]

The type of the maximum of Self and Rhs

Loading content...

Required methods

fn max(self, rhs: Rhs) -> Self::Output[src]

Method returning the maximum

Loading content...

Implementors

impl Max<B0> for B0[src]

type Output = B0

impl Max<B0> for B1[src]

type Output = B1

impl Max<B1> for B0[src]

type Output = B1

impl Max<B1> for B1[src]

type Output = B1

impl Max<Z0> for Z0[src]

type Output = Z0

impl<U> Max<NInt<U>> for Z0 where
    U: Unsigned + NonZero
[src]

type Output = Z0

impl<U> Max<PInt<U>> for Z0 where
    U: Unsigned + NonZero
[src]

type Output = PInt<U>

impl<U> Max<Z0> for NInt<U> where
    U: Unsigned + NonZero
[src]

type Output = Z0

impl<U> Max<Z0> for PInt<U> where
    U: Unsigned + NonZero
[src]

type Output = PInt<U>

impl<U> Max<U> for UTerm where
    U: Unsigned
[src]

type Output = U

impl<U, B, Ur> Max<Ur> for UInt<U, B> where
    U: Unsigned,
    B: Bit,
    Ur: Unsigned,
    UInt<U, B>: Cmp<Ur> + PrivateMax<Ur, Compare<UInt<U, B>, Ur>>, 
[src]

type Output = PrivateMaxOut<UInt<U, B>, Ur, Compare<UInt<U, B>, Ur>>

impl<Ul, Ur> Max<NInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero + Min<Ur>,
    Ur: Unsigned + NonZero,
    Minimum<Ul, Ur>: Unsigned + NonZero
[src]

type Output = NInt<Minimum<Ul, Ur>>

impl<Ul, Ur> Max<NInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero
[src]

type Output = PInt<Ul>

impl<Ul, Ur> Max<PInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero
[src]

type Output = PInt<Ur>

impl<Ul, Ur> Max<PInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Max<Ur>,
    Ur: Unsigned + NonZero,
    Maximum<Ul, Ur>: Unsigned + NonZero
[src]

type Output = PInt<Maximum<Ul, Ur>>

Loading content...