Struct UnfilterRegion

Source
pub struct UnfilterRegion {
    pub available: usize,
    pub filled: usize,
}
Expand description

A region into a buffer utilized as a UnfilterBuf.

The span of data denoted by filled..available is the region of bytes that must be preserved for use by the decompression algorithm. It may be moved, e.g. by subtracting the same amount from both of these fields. Always ensure that filled <= available, the library does not violate this invariant when modifying this struct as an UnfilterBuf.

Fields§

§available: usize

The past-the-end index of byte that are allowed to be modified.

§filled: usize

The past-the-end of bytes that have been written to.

Implementations§

Source§

impl UnfilterRegion

Source

pub fn as_buf<'data>( &'data mut self, buffer: &'data mut Vec<u8>, ) -> UnfilterBuf<'data>

Use this region to decompress new filtered rowline data.

Pass the wrapped buffer to StreamingDecoder::update to fill it with data and update the region indices.

Trait Implementations§

Source§

impl Clone for UnfilterRegion

Source§

fn clone(&self) -> UnfilterRegion

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for UnfilterRegion

Source§

fn default() -> UnfilterRegion

Returns the “default value” for a type. Read more
Source§

impl Copy for UnfilterRegion

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.