Struct rsonpath::input::borrowed::BorrowedBytesBlockIterator
source · 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,
impl<'a, 'r, R, const N: usize> InputBlockIterator<'a, N> for BorrowedBytesBlockIterator<'r, EndPaddedInput<'a>, R, N>where
R: InputRecorder<&'a [u8]> + 'r,
§type Error = Infallible
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>
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)
fn offset(&mut self, count: isize)
Offset the iterator by
count
full blocks forward. Read moresource§fn get_offset(&self) -> usize
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,
impl<'a, 'r, R, const N: usize> InputBlockIterator<'a, N> for BorrowedBytesBlockIterator<'r, TwoSidesPaddedInput<'a>, R, N>where
R: InputRecorder<&'a [u8]> + 'r,
§type Error = Infallible
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>
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)
fn offset(&mut self, count: isize)
Offset the iterator by
count
full blocks forward. Read moresource§fn get_offset(&self) -> usize
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>where
I: RefUnwindSafe,
R: RefUnwindSafe,
impl<'r, I, R, const N: usize> Send for BorrowedBytesBlockIterator<'r, I, R, N>
impl<'r, I, R, const N: usize> Sync for BorrowedBytesBlockIterator<'r, I, R, N>
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>where
I: UnwindSafe,
R: RefUnwindSafe,
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