pub enum Token<P: Policy = Standard> {
Char(char),
Glyph(Glyph<P>),
Number(Numeral),
}
Expand description
A small container for either plain text or a Glyph
specification. Serves
as the top level of throughput for the transliteration process.
Variants§
Char(char)
A single Unicode codepoint.
Glyph(Glyph<P>)
A specified base character and any extra tags it requires.
Number(Numeral)
A numeric value.
Implementations§
Trait Implementations§
impl<P: Copy + Policy> Copy for Token<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for Token<P>where P: RefUnwindSafe,
impl<P> Send for Token<P>where P: Send,
impl<P> Sync for Token<P>where P: Sync,
impl<P> Unpin for Token<P>where P: Unpin,
impl<P> UnwindSafe for Token<P>where P: UnwindSafe,
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