Trait AsciiIteratorExt

Source
pub trait AsciiIteratorExt
where Self: IntoIterator + Sized, Self::Item: Borrow<u8> + Sized,
{ // Provided method fn ascii<'b>(self) -> Decoder<'b, Self> { ... } }
Expand description

Extension trait for iterators of bytes and adds the helper function IteratorExt::ascii for decoding as ASCII strings.

Provided Methods§

Source

fn ascii<'b>(self) -> Decoder<'b, Self>

Decode self iterator of bytes as ASCII.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> IteratorExt for I
where I: IntoIterator, I::Item: Borrow<u8> + Sized,