pub trait NumberLike: Copy + Debug + Display + Default + PartialEq + 'static {
    type Unsigned: UnsignedLike;

    const HEADER_BYTE: u8;
    const PHYSICAL_BITS: usize;

    fn num_eq(&self, other: &Self) -> bool;
fn num_cmp(&self, other: &Self) -> Ordering;
fn to_unsigned(self) -> Self::Unsigned;
fn from_unsigned(off: Self::Unsigned) -> Self;
fn bytes_from(num: Self) -> Vec<u8>;
fn from_bytes(bytes: Vec<u8>) -> Self; fn le(&self, other: &Self) -> bool { ... }
fn lt(&self, other: &Self) -> bool { ... }
fn ge(&self, other: &Self) -> bool { ... }
fn gt(&self, other: &Self) -> bool { ... } }

Associated Types

Associated Constants

Required methods

Provided methods

Implementations on Foreign Types

Implementors