pub enum NormAtom<'a> {
Renamed(u32),
Text(&'a str),
Literal(u8),
}Expand description
The normalized payload of one token.
Variants§
Renamed(u32)
A scope-local name, numbered by first occurrence within the slice.
Text(&'a str)
Text preserved verbatim (keywords, operators, external names).
Literal(u8)
A literal placeholder; the payload is its category class, or a single
shared class under LiteralNorm::Full.
Trait Implementations§
impl<'a> Copy for NormAtom<'a>
impl<'a> Eq for NormAtom<'a>
impl<'a> StructuralPartialEq for NormAtom<'a>
Auto Trait Implementations§
impl<'a> Freeze for NormAtom<'a>
impl<'a> RefUnwindSafe for NormAtom<'a>
impl<'a> Send for NormAtom<'a>
impl<'a> Sync for NormAtom<'a>
impl<'a> Unpin for NormAtom<'a>
impl<'a> UnsafeUnpin for NormAtom<'a>
impl<'a> UnwindSafe for NormAtom<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.