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>
impl<'dec, 'scratch> Block<'dec, 'scratch>
sourcepub fn step(
self
) -> Result<Step<(Shuffle<'scratch>, Start<'dec>), BlockSave<'scratch>>, Error>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more