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§
Sourcefn extract_bit(&self, idx: usize) -> bool
fn extract_bit(&self, idx: usize) -> bool
Extract a bit at given index (in little endian order) from a byte array.