IntoBits

Trait IntoBits 

Source
pub trait IntoBits {
    type Bytes: Iterator<Item = u8>;

    // Required method
    fn into_bits(self) -> Bits<Self::Bytes> ;
}
Expand description

Converts value to bit iterator

Required Associated Types§

Source

type Bytes: Iterator<Item = u8>

Required Methods§

Source

fn into_bits(self) -> Bits<Self::Bytes>

Implementations on Foreign Types§

Source§

impl IntoBits for u8

Source§

type Bytes = IntoIter<u8, 1>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl IntoBits for u16

Source§

type Bytes = IntoIter<u8, 2>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl IntoBits for u32

Source§

type Bytes = IntoIter<u8, 4>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl IntoBits for u64

Source§

type Bytes = IntoIter<u8, 8>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl IntoBits for u128

Source§

type Bytes = IntoIter<u8, 16>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl<const N: usize> IntoBits for [u8; N]

Source§

type Bytes = IntoIter<u8, N>

Source§

fn into_bits(self) -> Bits<Self::Bytes>

Source§

impl<const N: usize> IntoBits for [u16; N]

Source§

impl<const N: usize> IntoBits for [u32; N]

Source§

impl<const N: usize> IntoBits for [u64; N]

Source§

impl<const N: usize> IntoBits for [u128; N]

Implementors§