[][src]Enum tinybitvec::TinyBitVec

pub enum TinyBitVec<Bits = [u16; 14], O = Local> where
    O: BitOrder,
    Bits: AsBits + Default
{ Inline(ArrayBitVec<Bits, O>), Heap(BitVec<O, Bits::Store>), }

Variants

Inline(ArrayBitVec<Bits, O>)
Heap(BitVec<O, Bits::Store>)

Implementations

impl<Bits, O> TinyBitVec<Bits, O> where
    O: BitOrder,
    Bits: AsBits + Default
[src]

pub fn is_empty(&self) -> bool[src]

pub fn clear(&mut self)[src]

pub fn into_vec(self) -> BitVec<O, Bits::Store>[src]

pub fn move_to_heap_and_reserve(&mut self, n: usize)[src]

pub fn move_to_heap(&mut self)[src]

pub fn append(&mut self, other: &mut Self)[src]

pub fn is_heap(&self) -> bool[src]

pub fn is_inline(&self) -> bool[src]

pub fn push(&mut self, x: bool)[src]

pub fn insert(&mut self, index: usize, x: bool)[src]

pub fn extend_from_slice(&mut self, other: &BitSlice<O, Bits::Store>)[src]

pub fn resize(&mut self, newlen: usize, x: bool)[src]

pub fn reserve(&mut self, n: usize)[src]

pub fn resize_with<F>(&mut self, newlen: usize, f: F) where
    F: FnMut() -> bool
[src]

pub fn capacity(&self) -> usize[src]

pub fn len(&self) -> usize[src]

pub fn truncate(&mut self, n: usize)[src]

pub fn pop(&mut self) -> Option<bool>[src]

pub fn swap_remove(&mut self, index: usize) -> bool[src]

pub fn remove(&mut self, index: usize) -> bool[src]

Trait Implementations

impl<O, Bits> Deref for TinyBitVec<Bits, O> where
    O: BitOrder,
    Bits: AsBits + Default
[src]

type Target = BitSlice<O, Bits::Store>

The resulting type after dereferencing.

impl<O, Bits> DerefMut for TinyBitVec<Bits, O> where
    O: BitOrder,
    Bits: AsBits + Default
[src]

Auto Trait Implementations

impl<Bits, O> RefUnwindSafe for TinyBitVec<Bits, O> where
    Bits: RefUnwindSafe,
    O: RefUnwindSafe,
    <Bits as AsBits>::Store: RefUnwindSafe

impl<Bits, O> Send for TinyBitVec<Bits, O> where
    Bits: Send,
    O: Send,
    <Bits as AsBits>::Store: BitStore

impl<Bits, O> Sync for TinyBitVec<Bits, O> where
    Bits: Sync,
    O: Sync,
    <Bits as AsBits>::Store: BitStore

impl<Bits, O> Unpin for TinyBitVec<Bits, O> where
    Bits: Unpin,
    O: Unpin,
    <Bits as AsBits>::Store: Unpin

impl<Bits, O> UnwindSafe for TinyBitVec<Bits, O> where
    Bits: UnwindSafe,
    O: UnwindSafe,
    <Bits as AsBits>::Store: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.