Trait libp2p::multiaddr::multihash::typenum::Bit[][src]

pub trait Bit: Copy + Default {
    pub const U8: u8;
    pub const BOOL: bool;

    pub fn to_u8() -> u8;
pub fn to_bool() -> bool; }

The marker trait for compile time bits.

This trait should not be implemented for anything outside this crate.

Associated Constants

pub const U8: u8[src]

pub const BOOL: bool[src]

Loading content...

Required methods

pub fn to_u8() -> u8[src]

pub fn to_bool() -> bool[src]

Loading content...

Implementors

impl Bit for B0[src]

impl Bit for B1[src]

Loading content...