ExtractBit

Trait ExtractBit 

Source
pub trait ExtractBit: Index<usize, Output = u8> {
    // Provided method
    fn extract_bit(&self, idx: usize) -> bool { ... }
}
Expand description

Simple trait to extract a bit from a byte array.

Provided Methods§

Source

fn extract_bit(&self, idx: usize) -> bool

Extract a bit at given index (in little endian order) from a byte array.

Implementations on Foreign Types§

Source§

impl ExtractBit for Vec<u8>

Source§

impl<const T: usize> ExtractBit for [u8; T]

Implementors§