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