[][src]Struct compressed_vec::vector::VectorReader

pub struct VectorReader<'buf, T: VectBase> { /* fields omitted */ }

A reader for reading sections and elements from a VectorAppender written vector. Use the same base type - eg VectorU32Appender -> VectorReader:: Can be reused many times; it has no mutable state and creates new iterators every time.

Implementations

impl<'buf, T> VectorReader<'buf, T> where
    T: VectBase + BaseSubtypeMapping
[src]

pub fn try_new(vect_bytes: &'buf [u8]) -> Result<Self, CodingError>[src]

Creates a new reader out of the bytes for the vector.

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

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

pub fn num_null_sections(&self) -> Result<usize, CodingError>[src]

Iterates and discovers the number of null sections. O(num_sections). It will be faster to just use get_stats().

pub fn get_stats(&self) -> FixedSectStats[src]

Returns a FixedSectStats extracted from the vector header.

pub fn sect_iter(&self) -> FixedSectIterator<'buf, T>[src]

Returns an iterator over each section in this vector

pub fn filter_iter<F: SectFilterSink<T>>(
    &self,
    f: F
) -> VectorFilter<'buf, F, T>
[src]

Returns a VectorFilter that iterates over 256-bit masks filtered from vector elements

pub fn iterate(&self) -> VectorItemIter<'buf, T>[src]

Returns an iterator over all items in this vector.

pub fn decode_to_sink<Output>(
    &self,
    output: &mut Output
) -> Result<(), CodingError> where
    Output: Sink<T::SI>, 
[src]

Decodes/processes this vector's elements through a Sink. This is the most general purpose vector decoding/processing API.

Auto Trait Implementations

impl<'buf, T> RefUnwindSafe for VectorReader<'buf, T> where
    T: RefUnwindSafe

impl<'buf, T> Send for VectorReader<'buf, T> where
    T: Send

impl<'buf, T> Sync for VectorReader<'buf, T> where
    T: Sync

impl<'buf, T> Unpin for VectorReader<'buf, T> where
    T: Unpin

impl<'buf, T> UnwindSafe for VectorReader<'buf, T> where
    T: 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, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

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

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

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<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.