Struct sndjvu_codec::bzz::dec::Block

source ·
pub struct Block<'dec, 'scratch> { /* private fields */ }
Available on crate feature bzz only.
Expand description

State of the decoder while decoding the contents of a block.

Implementations§

source§

impl<'dec, 'scratch> Block<'dec, 'scratch>

source

pub fn step( self ) -> Result<Step<(Shuffle<'scratch>, Start<'dec>), BlockSave<'scratch>>, Error>

Make progress on decoding the block.

Returns Err(_) if the input was invalid, Ok(Step::Complete(_)) if the block was decoded completely, or Ok(Step::Incomplete(_)) if more input bytes are needed (this does not mean that no progress was made).

Auto Trait Implementations§

§

impl<'dec, 'scratch> RefUnwindSafe for Block<'dec, 'scratch>

§

impl<'dec, 'scratch> Send for Block<'dec, 'scratch>

§

impl<'dec, 'scratch> Sync for Block<'dec, 'scratch>

§

impl<'dec, 'scratch> Unpin for Block<'dec, 'scratch>

§

impl<'dec, 'scratch> !UnwindSafe for Block<'dec, 'scratch>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.