Struct BufferResult

#[must_use = "Contains a status with potential error information"]
pub struct BufferResult { pub consumed_in: usize, pub consumed_out: usize, pub status: Result<LzwStatus, LzwError> }

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.

Trait Implementations

impl Debug for BufferResult

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for BufferResult

impl RefUnwindSafe for BufferResult

impl Send for BufferResult

impl Sync for BufferResult

impl Unpin for BufferResult

impl UnsafeUnpin for BufferResult

impl UnwindSafe for BufferResult

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for BufferResult

fn from(t: T) -> T

Returns the argument unchanged.

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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