Struct succinct::bit_vector::BitSliceMut
[−]
[src]
pub struct BitSliceMut<'a, Base: 'a + BitsMut> { // some fields omitted }
A borrowed, mutable slice of a bit vector.
Methods
impl<'a, Base: 'a + BitsMut> BitSliceMut<'a, Base>
[src]
Trait Implementations
impl<'a, Base: Debug + 'a + BitsMut> Debug for BitSliceMut<'a, Base>
[src]
impl<'a, Base: 'a + BitsMut> Bits for BitSliceMut<'a, Base>
[src]
type Block = Base::Block
The underlying block type used to store the bits of the slice.
fn bit_len(&self) -> u64
The length of the slice in bits.
fn get_bit(&self, position: u64) -> bool
Gets the bit at position
Read more
fn block_len(&self) -> usize
The length of the slice in blocks.
fn get_block(&self, position: usize) -> Self::Block
Gets the block at position
Read more
fn get_bits(&self, start: u64, count: usize) -> Self::Block
Gets count
bits starting at bit index start
, interpreted as a little-endian integer. Read more
impl<'a, Base: 'a + BitsMut> BitsMut for BitSliceMut<'a, Base>
[src]
fn set_bit(&mut self, position: u64, value: bool)
Sets the bit at position
to value
. Read more
fn set_block(&mut self, position: usize, value: Self::Block)
Sets the block at position
to value
. Read more
fn set_bits(&mut self, start: u64, count: usize, value: Self::Block)
Sets count
bits starting at bit index start
, interpreted as a little-endian integer. Read more
impl<'a, Base: 'a + BitsMut> SpaceUsage for BitSliceMut<'a, Base>
[src]
fn is_stack_only() -> bool
Is the size of this type known statically? Read more
fn total_bytes(&self) -> usize
Computes the size of the receiver in bytes. Read more
fn stack_bytes() -> usize
Calculates the stack portion of the size of this type. Read more
fn heap_bytes(&self) -> usize
Calculates the heap portion of the size of an object. Read more