pub struct BorrowedBytesBlockIterator<'r, I, R, const N: usize> { /* private fields */ }
Expand description

Iterator over blocks of BorrowedBytes of size exactly N.

Trait Implementations§

source§

impl<'a, 'r, R, const N: usize> InputBlockIterator<'a, N> for BorrowedBytesBlockIterator<'r, EndPaddedInput<'a>, R, N>
where R: InputRecorder<&'a [u8]> + 'r,

§

type Block = &'a [u8]

The type of blocks returned.
§

type Error = Infallible

Type of errors that can occur when reading from this iterator.
source§

fn next(&mut self) -> Result<Option<Self::Block>, Self::Error>

Advances the iterator and returns the next value. Read more
source§

fn offset(&mut self, count: isize)

Offset the iterator by count full blocks forward. Read more
source§

fn get_offset(&self) -> usize

Get the offset of the iterator in the input. Read more
source§

impl<'a, 'r, R, const N: usize> InputBlockIterator<'a, N> for BorrowedBytesBlockIterator<'r, TwoSidesPaddedInput<'a>, R, N>
where R: InputRecorder<&'a [u8]> + 'r,

§

type Block = &'a [u8]

The type of blocks returned.
§

type Error = Infallible

Type of errors that can occur when reading from this iterator.
source§

fn next(&mut self) -> Result<Option<Self::Block>, Self::Error>

Advances the iterator and returns the next value. Read more
source§

fn offset(&mut self, count: isize)

Offset the iterator by count full blocks forward. Read more
source§

fn get_offset(&self) -> usize

Get the offset of the iterator in the input. Read more

Auto Trait Implementations§

§

impl<'r, I, R, const N: usize> RefUnwindSafe for BorrowedBytesBlockIterator<'r, I, R, N>

§

impl<'r, I, R, const N: usize> Send for BorrowedBytesBlockIterator<'r, I, R, N>
where I: Send, R: Sync,

§

impl<'r, I, R, const N: usize> Sync for BorrowedBytesBlockIterator<'r, I, R, N>
where I: Sync, R: Sync,

§

impl<'r, I, R, const N: usize> Unpin for BorrowedBytesBlockIterator<'r, I, R, N>
where I: Unpin,

§

impl<'r, I, R, const N: usize> UnwindSafe for BorrowedBytesBlockIterator<'r, I, R, N>

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.