[][src]Struct succinct_rs::bit_vector::BitVectorBuilder

pub struct BitVectorBuilder { /* fields omitted */ }

Builder of BitVector.

Methods

impl BitVectorBuilder[src]

pub fn from_length(length: u64) -> BitVectorBuilder[src]

Prepares a bit vector of length, fulfilled with 0.

Panics

When length == 0.

pub fn from_str(bit_vector_str: BitVectorString) -> BitVectorBuilder[src]

Prepares a bit vector from BitVectorString representation.

pub fn set_bit(&mut self, i: u64) -> &mut BitVectorBuilder[src]

Set 1 to i-th bit.

Panics

When i >= Length of bit vector to build.

pub fn build(&self) -> BitVector[src]

Build BitVector in O(N) time (where N is the length of the bit vector to build).

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]