Struct EscapeDefault
pub struct EscapeDefault(pub(in ::char) EscapeIterInner<10, AlwaysEscaped>);
An iterator that yields the literal escape code of a char.
This struct is created by the escape_default method on char. See
its documentation for more.
Fields
0: EscapeIterInner<10, AlwaysEscaped>
Implementations
impl EscapeDefault
const fn printable(c: Char) -> Selfconst fn backslash(c: Char) -> Selfconst fn unicode(c: char) -> 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 ExactSizeIterator for EscapeDefault
fn len(&self) -> usize
impl FusedIterator for EscapeDefault
impl Iterator for EscapeDefault
type Item = char;fn next(&mut self) -> Option<char>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn last(self) -> Option<char>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>