[][src]Struct bitrush_index::BuildOptions

#[repr(C)]
pub struct BuildOptions { /* fields omitted */ }

BuildOptions defines how many bitmap compose a BitmapIndex and how many values must represent every chunk in BitmapIndex. On a BitmapIndex of a BitValue 'U' with size_in_bit(U) = L, bit_block_size represent the size in bit of each sub-index. For example a BitmapIndex of a BitValue 'U=u16' with 'size_in_bit(u16) = 16' and bit_block_size = 8 is composed from '16 / 8 = 2' blocks of '2^8 = 256' bitmaps each, so is composed from '2 * 256 = 512' bitmaps.

Methods

impl BuildOptions[src]

pub fn new(bit_block_size: usize, chunk_size: ChunkSize) -> Self[src]

Create a new BuildOptions.

Trait Implementations

impl Clone for BuildOptions[src]

Auto Trait Implementations

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