Struct EscapeUnicode

pub struct EscapeUnicode(pub(in ::char) EscapeIterInner<10, AlwaysEscaped>);

Returns an iterator that yields the hexadecimal Unicode escape of a character, as chars.

This struct is created by the escape_unicode method on char. See its documentation for more.

Fields

0: EscapeIterInner<10, AlwaysEscaped>

Implementations

impl EscapeUnicode

const fn new(c: char) -> Self

Trait Implementations

impl Clone for EscapeUnicode

fn clone(&self) -> EscapeUnicode

impl Debug for EscapeUnicode

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

impl Display for EscapeUnicode

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

impl ExactSizeIterator for EscapeUnicode

fn len(&self) -> usize

impl FusedIterator for EscapeUnicode

impl Iterator for EscapeUnicode

type Item = char;
fn next(&mut self) -> Option<char>
fn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
fn last(self) -> Option<char>
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

Auto Trait Implementations

impl Freeze for EscapeUnicode

impl RefUnwindSafe for EscapeUnicode

impl Send for EscapeUnicode

impl Sync for EscapeUnicode

impl Unpin for EscapeUnicode

impl UnsafeUnpin for EscapeUnicode

impl UnwindSafe for EscapeUnicode

Blanket Implementations

impl<I> IntoIterator for EscapeUnicode where I: Iterator,

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

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for EscapeUnicode where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for EscapeUnicode where T: ?Sized,

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

impl<T> CloneToUninit for EscapeUnicode where T: Clone,

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

impl<T> From<T> for EscapeUnicode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for EscapeUnicode where T: ?Sized,

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

impl<T> SizedTypeProperties for EscapeUnicode

impl<T, U> Into<U> for EscapeUnicode 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 EscapeUnicode 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 EscapeUnicode where U: TryFrom<T>,

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