[−][src]Struct succinct::bit_vec::BitSlice
A borrowed slice of a bit vector.
Methods
impl<'a, Base: 'a + BitVec + ?Sized> BitSlice<'a, Base>
[src]
pub fn new<R: IntoRange<u64>>(base: &'a Base, range: R) -> Self
[src]
Slices base to the specified range.
pub fn slice<R: IntoRange<u64>>(&self, range: R) -> Self
[src]
Slices this slice into a subslice.
Unlike BitSlice::new
, does not create an additional layer of
indirection.
Trait Implementations
impl<'a, Base: 'a + BitVec + ?Sized> SpaceUsage for BitSlice<'a, Base>
[src]
fn is_stack_only() -> bool
[src]
fn heap_bytes(&self) -> usize
[src]
fn total_bytes(&self) -> usize
[src]
Computes the size of the receiver in bytes. Read more
fn stack_bytes() -> usize
[src]
Calculates the stack portion of the size of this type. Read more
impl<'a, Base: 'a + BitVec + ?Sized> BitVec for BitSlice<'a, Base>
[src]
type Block = Base::Block
The underlying block type used to store the bits of the vector.
fn bit_len(&self) -> u64
[src]
fn get_bit(&self, position: u64) -> bool
[src]
fn get_bits(&self, position: u64, count: usize) -> Self::Block
[src]
fn get_block(&self, position: usize) -> Self::Block
[src]
fn block_len(&self) -> usize
[src]
The length of the slice in blocks.
impl<'a, Base: Clone + 'a + BitVec + ?Sized> Clone for BitSlice<'a, Base>
[src]
fn clone(&self) -> BitSlice<'a, Base>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, Base: Copy + 'a + BitVec + ?Sized> Copy for BitSlice<'a, Base>
[src]
impl<'a, Base: Debug + 'a + BitVec + ?Sized> Debug for BitSlice<'a, Base>
[src]
Auto Trait Implementations
impl<'a, Base: ?Sized> Send for BitSlice<'a, Base> where
Base: Sync,
Base: Sync,
impl<'a, Base: ?Sized> Unpin for BitSlice<'a, Base>
impl<'a, Base: ?Sized> Sync for BitSlice<'a, Base> where
Base: Sync,
Base: Sync,
impl<'a, Base: ?Sized> UnwindSafe for BitSlice<'a, Base> where
Base: RefUnwindSafe,
Base: RefUnwindSafe,
impl<'a, Base: ?Sized> RefUnwindSafe for BitSlice<'a, Base> where
Base: RefUnwindSafe,
Base: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,