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