Trait okvs::bits::Bits

source ·
pub trait Bits: BitXor<Output = Self> + BitXorAssign + Sized + Copy + Debug {
    const BYTES: usize;

    fn random() -> Self;
    fn to_bytes(self) -> Vec<u8>;
    fn from_bytes(bytes: &[u8]) -> Self;
}

Required Associated Constants§

Required Methods§

Implementations on Foreign Types§

Implementors§