Enum typenum::bit::B1 [] [src]

pub enum B1 {}

The type-level bit 1.

Trait Implementations

impl PartialEq for B1
[src]

fn eq(&self, _: &Self) -> 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 B1
[src]

impl PartialOrd for B1
[src]

fn partial_cmp(&self, _: &Self) -> 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 B1
[src]

fn cmp(&self, _: &Self) -> Ordering

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

impl Clone for B1
[src]

fn clone(&self) -> Self

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 Copy for B1
[src]

impl Hash for B1
[src]

fn hash<H>(&self, _: &mut H) where H: Hasher

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Default for B1
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Debug for B1
[src]

fn fmt(&self, _: &mut Formatter) -> Result<(), Error>

Formats the value using the given formatter.

impl Bit for B1
[src]

fn to_u8() -> u8

fn to_bool() -> bool

impl NonZero for B1
[src]

impl Not for B1
[src]

Not of 1 (!1 = 0)

type Output = B0

The resulting type after applying the ! operator

fn not(self) -> Self::Output

The method for the unary ! operator

impl<Rhs: Bit> BitAnd<Rhs> for B1
[src]

And with 1 ( 1 & B = B)

type Output = Rhs

The resulting type after applying the & operator

fn bitand(self, _: Rhs) -> Self::Output

The method for the & operator

impl<Rhs: Bit> BitOr<Rhs> for B1
[src]

Or with 1 ( 1 | B = 1)

type Output = B1

The resulting type after applying the | operator

fn bitor(self, _: Rhs) -> Self::Output

The method for the | operator

impl BitXor<B0> for B1
[src]

Xor between 1 and 0 ( 1 ^ 0 = 1)

type Output = B1

The resulting type after applying the ^ operator

fn bitxor(self, _: B0) -> Self::Output

The method for the ^ operator

impl BitXor<B1> for B1
[src]

Xor between 1 and 1 ( 1 ^ 1 = 0)

type Output = B0

The resulting type after applying the ^ operator

fn bitxor(self, _: B1) -> Self::Output

The method for the ^ operator

impl Cmp<B0> for B1
[src]

type Output = Greater

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl Cmp<B1> for B1
[src]

type Output = Equal

The result of the comparison. It should only ever be one of Greater, Less, or Equal.