[−][src]Struct compressed_vec::vector::VectorReader
A reader for reading sections and elements from a VectorAppender
written vector.
Use the same base type - eg VectorU32Appender -> VectorReader::
Implementations
impl<'buf, T> VectorReader<'buf, T> where
T: VectBase + BaseSubtypeMapping,
[src]
T: VectBase + BaseSubtypeMapping,
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]
&self,
f: F
) -> VectorFilter<'buf, F, T>
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]
&self,
output: &mut Output
) -> Result<(), CodingError> where
Output: Sink<T::SI>,
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,
T: RefUnwindSafe,
impl<'buf, T> Send for VectorReader<'buf, T> where
T: Send,
T: Send,
impl<'buf, T> Sync for VectorReader<'buf, T> where
T: Sync,
T: Sync,
impl<'buf, T> Unpin for VectorReader<'buf, T> where
T: Unpin,
T: Unpin,
impl<'buf, T> UnwindSafe for VectorReader<'buf, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
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]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
[src]
U: FromBits<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,