Struct azalea_core::bitset::BitSet
source · pub struct BitSet { /* private fields */ }
Expand description
Represents Java’s BitSet, a list of bits.
Implementations§
source§impl 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§
source§impl McBufReadable for BitSet
impl McBufReadable for BitSet
source§impl McBufWritable for BitSet
impl McBufWritable for BitSet
source§impl PartialEq for BitSet
impl PartialEq for BitSet
impl Eq for BitSet
impl StructuralPartialEq for BitSet
Auto Trait Implementations§
impl Freeze for BitSet
impl RefUnwindSafe for BitSet
impl Send for BitSet
impl Sync for BitSet
impl Unpin for BitSet
impl UnwindSafe for BitSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more