pub struct BufferResult {
    pub consumed_in: usize,
    pub consumed_out: usize,
    pub status: Result<LzwStatus, LzwError>,
}
Expand description

The result of a coding operation on a pair of buffer.

Fields

consumed_in: usize

The number of bytes consumed from the input buffer.

consumed_out: usize

The number of bytes written into the output buffer.

status: Result<LzwStatus, LzwError>

The status after returning from the write call.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.