Union MaybeEscapedCharacter

pub(in ::escape) union MaybeEscapedCharacter<const N: usize> { pub escape_seq: [Char; N], pub literal: char }

Fields

escape_seq: [Char; N]
literal: char

Trait Implementations

impl<const N: usize> Clone for MaybeEscapedCharacter<N>

fn clone(&self) -> MaybeEscapedCharacter<N>

impl<const N: usize> Copy for MaybeEscapedCharacter<N>

impl<const N: usize> TrivialClone for MaybeEscapedCharacter<N>

Auto Trait Implementations

impl<const N: usize> Freeze for MaybeEscapedCharacter<N> where [AsciiChar; N]: Freeze,

impl<const N: usize> RefUnwindSafe for MaybeEscapedCharacter<N> where [AsciiChar; N]: RefUnwindSafe,

impl<const N: usize> Send for MaybeEscapedCharacter<N> where [AsciiChar; N]: Send,

impl<const N: usize> Sync for MaybeEscapedCharacter<N> where [AsciiChar; N]: Sync,

impl<const N: usize> Unpin for MaybeEscapedCharacter<N> where [AsciiChar; N]: Unpin,

impl<const N: usize> UnsafeUnpin for MaybeEscapedCharacter<N> where [AsciiChar; N]: UnsafeUnpin,

impl<const N: usize> UnwindSafe for MaybeEscapedCharacter<N> where [AsciiChar; N]: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MaybeEscapedCharacter<N> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MaybeEscapedCharacter<N> where T: ?Sized,

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

impl<T> CloneToUninit for MaybeEscapedCharacter<N> where T: Clone,

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

impl<T> From<T> for MaybeEscapedCharacter<N>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for MaybeEscapedCharacter<N> where T: ?Sized,

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

impl<T> SizedTypeProperties for MaybeEscapedCharacter<N>

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

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