pub enum AtomKind {
Start,
End,
Hybrid,
Keyword,
InterpolateStart,
InterpolateEnd,
}Expand description
The kind of atom being represented
Variants§
Start
This is the start atom of a token, for example /* for a multiline comment
End
This is the end atom of a token, for example */ for a multiline comment
Hybrid
Sometimes bounded tokens have the same start and end atom, e.g. a string having a “ to start and an “ to end, a hybrid token allows atoms to be used to start and end a token in cases where due to having the same start and end atom definitions, their kind is ambiguous
Keyword
This is just a normal keyword
InterpolateStart
This is a start marker for interpolation
InterpolateEnd
This is an end marker for interpolation
Trait Implementations§
impl StructuralPartialEq for AtomKind
Auto Trait Implementations§
impl Freeze for AtomKind
impl RefUnwindSafe for AtomKind
impl Send for AtomKind
impl Sync for AtomKind
impl Unpin for AtomKind
impl UnwindSafe for AtomKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)