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

Iterator over blocks of BorrowedBytes of size exactly N.

Trait Implementations§

source§

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

§

type Item = &'a [u8]

Type of items returned by this iterator.
§

type Error = InputError

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

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

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

fn collect<B>(self) -> Result<B, Self::Error>where B: FromIterator<Self::Item>, Self: Sized,

Transforms an iterator into a collection. Read more
source§

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

§

type Block = &'a [u8]

The type of blocks returned.
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<'a, 'r, const N: usize, R> RefUnwindSafe for BorrowedBytesBlockIterator<'a, 'r, N, R>where R: RefUnwindSafe,

§

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

§

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

§

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

§

impl<'a, 'r, const N: usize, R> UnwindSafe for BorrowedBytesBlockIterator<'a, 'r, N, R>where R: RefUnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.