Struct Bytes

struct Bytes<R> { ... }

An iterator over u8 values of a reader.

This struct is generally created by calling bytes on a reader. Please see the documentation of bytes for more details.

Implementations

impl<I> IntoIterator for Bytes<R>

fn into_iter(self: Self) -> I

impl<R> Freeze for Bytes<R>

impl<R> RefUnwindSafe for Bytes<R>

impl<R> Send for Bytes<R>

impl<R> Sync for Bytes<R>

impl<R> Unpin for Bytes<R>

impl<R> UnwindSafe for Bytes<R>

impl<R: $crate::fmt::Debug> Debug for Bytes<R>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<R: Read> Iterator for Bytes<R>

fn next(self: &mut Self) -> Option<Result<u8>>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T> Any for Bytes<R>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Bytes<R>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Bytes<R>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Bytes<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Bytes<R>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Bytes<R>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Bytes<R>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>