Trait libipld::cid::multihash::typenum::Bit[]

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

    fn new() -> Self;
fn to_u8() -> u8;
fn to_bool() -> bool; }
Expand description

The marker trait for compile time bits.

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

Associated Constants

const U8: u8

const BOOL: bool

Required methods

fn new() -> Self

Instantiates a singleton representing this bit.

fn to_u8() -> u8

fn to_bool() -> bool

Implementors

impl Bit for B0

pub const U8: u8

pub const BOOL: bool

pub fn new() -> B0

pub fn to_u8() -> u8

pub fn to_bool() -> bool

impl Bit for B1

pub const U8: u8

pub const BOOL: bool

pub fn new() -> B1

pub fn to_u8() -> u8

pub fn to_bool() -> bool