Trait rustc_data_structures::bitslice::BitSlice [−][src]
pub trait BitSlice { fn clear_bit(&mut self, idx: usize) -> bool; fn set_bit(&mut self, idx: usize) -> bool; fn get_bit(&self, idx: usize) -> bool; }
BitSlice
provides helper methods for treating a [Word]
as a bitvector.
Required Methods
fn clear_bit(&mut self, idx: usize) -> bool
fn set_bit(&mut self, idx: usize) -> bool
fn get_bit(&self, idx: usize) -> bool
Implementations on Foreign Types
impl BitSlice for [Word]
[src]
impl BitSlice for [Word]