Struct tycho::partial::types::PartialCompression[][src]

pub struct PartialCompression {
    pub pointer: PartialPointer,
}

A unprocessed compression object.

Fields

pointer: PartialPointer

Implementations

impl PartialCompression[src]

pub fn bytes<R: Read + Seek>(
    &mut self,
    reader: &mut PartialReader<R>
) -> TychoResult<Vec<u8>>
[src]

Get the bytes within the compression object.

pub fn element<R: Read + Seek>(
    &mut self,
    reader: &mut PartialReader<R>
) -> TychoResult<PartialElement>
[src]

Get the element within the compression object.

(requires compression feature)

Trait Implementations

impl Clone for PartialCompression[src]

impl Debug for PartialCompression[src]

impl PartialCompressionAsync for PartialCompression[src]

fn bytes_async<'life0, 'life1, 'async_trait, R: AsyncRead + AsyncSeek + Unpin + Send>(
    &'life0 self,
    reader: &'life1 mut PartialReader<R>
) -> Pin<Box<dyn Future<Output = TychoResult<Vec<u8>>> + Send + 'async_trait>> where
    R: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Get the bytes within the compression object asynchronously.

(requires async_tokio feature)

fn element_async<'life0, 'life1, 'async_trait, R: AsyncRead + AsyncSeek + Unpin + Send>(
    &'life0 self,
    reader: &'life1 mut PartialReader<R>
) -> Pin<Box<dyn Future<Output = TychoResult<PartialElement>> + Send + 'async_trait>> where
    R: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Get the element within the compression object asynchronously.

(requires compression feature and async_tokio feature)

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,