pub struct RedLeaf<L>where
L: Language,{
pub kind: <L as Language>::TokenType,
pub span: Range<usize>,
}Expand description
A red leaf kind with absolute position information.
Fields§
§kind: <L as Language>::TokenTypeThe kind kind/category
span: Range<usize>The absolute byte span of this kind in the source text
Trait Implementations§
impl<L> Copy for RedLeaf<L>where
L: Language,
impl<L> Eq for RedLeaf<L>where
L: Language,
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> 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