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,

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

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

impl<T> From<T> for BufferResult

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

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

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