pub enum InputToken<S> {
Open(Scope<S>),
Close,
Text(String),
Verbatim(String),
}Expand description
A token emitted by a reader before hanja conversion has run.
This type intentionally has no annotation variant: annotations are produced by the engine and consumed by renderers, so input adapters cannot inject already-converted positions into the stream.
Variants§
Open(Scope<S>)
Enters a structural scope.
Close
Leaves the most recent structural scope.
Text(String)
Text that the engine may convert unless a preserving scope is active.
Verbatim(String)
Text that must pass through untouched.
Trait Implementations§
Source§impl<S: Clone> Clone for InputToken<S>
impl<S: Clone> Clone for InputToken<S>
Source§fn clone(&self) -> InputToken<S>
fn clone(&self) -> InputToken<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for InputToken<S>
impl<S: Debug> Debug for InputToken<S>
Source§impl<S: PartialEq> PartialEq for InputToken<S>
impl<S: PartialEq> PartialEq for InputToken<S>
Source§fn eq(&self, other: &InputToken<S>) -> bool
fn eq(&self, other: &InputToken<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S: Eq> Eq for InputToken<S>
impl<S> StructuralPartialEq for InputToken<S>
Auto Trait Implementations§
impl<S> Freeze for InputToken<S>where
S: Freeze,
impl<S> RefUnwindSafe for InputToken<S>where
S: RefUnwindSafe,
impl<S> Send for InputToken<S>where
S: Send,
impl<S> Sync for InputToken<S>where
S: Sync,
impl<S> Unpin for InputToken<S>where
S: Unpin,
impl<S> UnsafeUnpin for InputToken<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for InputToken<S>where
S: 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