Struct EscapeAscii

#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct EscapeAscii<'a> { pub(in ::slice::ascii) inner: FlatMap<Iter<'a, u8>, EscapeDefault, EscapeByte> }

An iterator over the escaped version of a byte slice.

This struct is created by the slice::escape_ascii method. See its documentation for more information.

Fields

inner: FlatMap<Iter<'a, u8>, EscapeDefault, EscapeByte>

Trait Implementations

impl<'a> Clone for EscapeAscii<'a>

fn clone(&self) -> EscapeAscii<'a>

impl<'a> Debug for EscapeAscii<'a>

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

impl<'a> Display for EscapeAscii<'a>

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

impl<'a> DoubleEndedIterator for EscapeAscii<'a>

fn next_back(&mut self) -> Option<u8>

impl<'a> FusedIterator for EscapeAscii<'a>

impl<'a> Iterator for EscapeAscii<'a>

type Item = u8;
fn next(&mut self) -> Option<u8>
fn size_hint(&self) -> (usize, Option<usize>)
fn try_fold<Acc, Fold, R>(&mut self, init: Acc, fold: Fold) -> R
where
    Fold: FnMut(Acc, Self::Item) -> R,
    R: Try<Output = Acc>,
fn fold<Acc, Fold>(self, init: Acc, fold: Fold) -> Acc
where
    Fold: FnMut(Acc, Self::Item) -> Acc,
fn last(self) -> Option<u8>

Auto Trait Implementations

impl<'a> Freeze for EscapeAscii<'a>

impl<'a> RefUnwindSafe for EscapeAscii<'a>

impl<'a> Send for EscapeAscii<'a>

impl<'a> Sync for EscapeAscii<'a>

impl<'a> Unpin for EscapeAscii<'a>

impl<'a> UnsafeUnpin for EscapeAscii<'a>

impl<'a> UnwindSafe for EscapeAscii<'a>

Blanket Implementations

impl<I> IntoIterator for EscapeAscii<'a> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for EscapeAscii<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for EscapeAscii<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for EscapeAscii<'a> where T: ?Sized,

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

impl<T> CloneToUninit for EscapeAscii<'a> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for EscapeAscii<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for EscapeAscii<'a> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for EscapeAscii<'a>

impl<T, U> Into<U> for EscapeAscii<'a> where U: From<T>,

fn into(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<U> for EscapeAscii<'a> where U: Into<T>,

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

impl<T, U> TryInto<U> for EscapeAscii<'a> where U: TryFrom<T>,

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