Struct azalea_core::BitSet
source · pub struct BitSet { /* private fields */ }
Expand description
Represents Java’s BitSet, a list of bits.
Implementations
sourceimpl BitSet
impl BitSet
pub fn new(size: usize) -> Self
pub fn index(&self, index: usize) -> bool
pub fn clear(&mut self, from_index: usize, to_index: usize)
sourcepub fn next_clear_bit(&self, from_index: usize) -> usize
pub fn next_clear_bit(&self, from_index: usize) -> usize
Returns the index of the first bit that is set to false
that occurs on or after the specified starting index.
pub fn set(&mut self, bit_index: usize)
Trait Implementations
sourceimpl McBufReadable for BitSet
impl McBufReadable for BitSet
sourceimpl McBufWritable for BitSet
impl McBufWritable for BitSet
impl Eq for BitSet
impl StructuralEq for BitSet
impl StructuralPartialEq for BitSet
Auto Trait Implementations
impl RefUnwindSafe for BitSet
impl Send for BitSet
impl Sync for BitSet
impl Unpin for BitSet
impl UnwindSafe for BitSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more