[][src]Struct succinct::bit_vec::BitSlice

pub struct BitSlice<'a, Base: 'a + BitVec + ?Sized> { /* fields omitted */ }

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 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 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_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

impl<'a, Base: ?Sized> Unpin for BitSlice<'a, Base>

impl<'a, Base: ?Sized> Sync for BitSlice<'a, Base> where
    Base: Sync

impl<'a, Base: ?Sized> UnwindSafe for BitSlice<'a, Base> where
    Base: RefUnwindSafe

impl<'a, Base: ?Sized> RefUnwindSafe for BitSlice<'a, Base> where
    Base: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]