Struct EscapeDefault
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct EscapeDefault(pub(in ::ascii) EscapeIterInner<4, AlwaysEscaped>);
An iterator over the escaped version of a byte.
This struct is created by the escape_default function. See its
documentation for more.
Fields
0: EscapeIterInner<4, AlwaysEscaped>
Implementations
impl EscapeDefault
const fn new(c: u8) -> Selffn empty() -> Self
Trait Implementations
impl Clone for EscapeDefault
fn clone(&self) -> EscapeDefault
impl Debug for EscapeDefault
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for EscapeDefault
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl DoubleEndedIterator for EscapeDefault
fn next_back(&mut self) -> Option<u8>fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
impl ExactSizeIterator for EscapeDefault
fn len(&self) -> usize
impl FusedIterator for EscapeDefault
impl Iterator for EscapeDefault
type Item = u8;fn next(&mut self) -> Option<u8>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn last(self) -> Option<u8>fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
Auto Trait Implementations
impl Freeze for EscapeDefault
impl RefUnwindSafe for EscapeDefault
impl Send for EscapeDefault
impl Sync for EscapeDefault
impl Unpin for EscapeDefault
impl UnsafeUnpin for EscapeDefault
impl UnwindSafe for EscapeDefault
Blanket Implementations
impl<I> IntoIterator for EscapeDefault
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for EscapeDefault
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EscapeDefault
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EscapeDefault
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EscapeDefault
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EscapeDefault
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for EscapeDefault
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for EscapeDefault
impl<T, U> Into<U> for EscapeDefault
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EscapeDefault
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 EscapeDefault
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>