pub struct RedLeaf<L: Language> {
pub kind: L::TokenType,
pub span: Range<usize>,
}Expand description
A red leaf kind with absolute position information.
Red leaves represent individual tokens with their location in the source.
Fields§
§kind: L::TokenTypeThe token kind/category.
span: Range<usize>The absolute byte span of this token in the source text.
Implementations§
Trait Implementations§
impl<L: Language> Copy for RedLeaf<L>
impl<L: Language> Eq for RedLeaf<L>
Auto Trait Implementations§
impl<L> Freeze for RedLeaf<L>
impl<L> RefUnwindSafe for RedLeaf<L>
impl<L> Send for RedLeaf<L>
impl<L> Sync for RedLeaf<L>
impl<L> Unpin for RedLeaf<L>
impl<L> UnsafeUnpin for RedLeaf<L>
impl<L> UnwindSafe for RedLeaf<L>
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