Struct EscapeDebug
pub struct EscapeDebug(pub(in ::char) EscapeIterInner<10, MaybeEscaped>);
An iterator that yields the literal escape code of a char.
This struct is created by the escape_debug method on char. See its
documentation for more.
Fields
0: EscapeIterInner<10, MaybeEscaped>
Implementations
impl EscapeDebug
const fn printable(chr: char) -> Selfconst fn backslash(c: Char) -> Selfconst fn unicode(c: char) -> Self
Trait Implementations
impl Clone for EscapeDebug
fn clone(&self) -> EscapeDebug
impl Debug for EscapeDebug
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for EscapeDebug
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl ExactSizeIterator for EscapeDebug
fn len(&self) -> usize
impl FusedIterator for EscapeDebug
impl Iterator for EscapeDebug
type Item = char;fn next(&mut self) -> Option<char>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usize
Auto Trait Implementations
impl Freeze for EscapeDebug
impl RefUnwindSafe for EscapeDebug
impl Send for EscapeDebug
impl Sync for EscapeDebug
impl Unpin for EscapeDebug
impl UnsafeUnpin for EscapeDebug
impl UnwindSafe for EscapeDebug
Blanket Implementations
impl<I> IntoIterator for EscapeDebug
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for EscapeDebug
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EscapeDebug
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EscapeDebug
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EscapeDebug
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EscapeDebug
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for EscapeDebug
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for EscapeDebug
impl<T, U> Into<U> for EscapeDebug
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 EscapeDebug
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 EscapeDebug
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>