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

pub enum B1 {}

The type-level bit 1.

Trait Implementations

impl PartialEq for B1

fn eq(&self, _: &Self) -> bool

fn ne(&self, other: &Rhs) -> bool

impl Eq for B1

impl PartialOrd for B1

fn partial_cmp(&self, _: &Self) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl Ord for B1

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

impl Clone for B1

fn clone(&self) -> Self

fn clone_from(&mut self, source: &Self)

impl Copy for B1

impl Hash for B1

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

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

impl Default for B1

fn default() -> Self

impl Debug for B1

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

impl Bit for B1

fn to_u8() -> u8

fn to_bool() -> bool

impl NonZero for B1

impl Not for B1

Not of 1 (!1 = 0)

type Output = B0

fn not(self) -> Self::Output

impl<Rhs: Bit> BitAnd<Rhs> for B1

And with 1 ( 1 & B = B)

type Output = Rhs

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

impl<Rhs: Bit> BitOr<Rhs> for B1

Or with 1 ( 1 | B = 1)

type Output = B1

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

impl BitXor<B0> for B1

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

type Output = B1

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

impl BitXor<B1> for B1

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

type Output = B0

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

impl Cmp<B0> for B1

type Output = Greater

impl Cmp<B1> for B1

type Output = Equal