pub struct GreenLeaf<L: Language> {
pub kind: L::TokenType,
pub length: u32,
}Expand description
A green leaf kind that stores only kind and length.
Fields§
§kind: L::TokenTypeThe kind kind/category
length: u32The byte length of the kind text
Implementations§
Trait Implementations§
impl<L: Language> Copy for GreenLeaf<L>
impl<L: Language> Eq for GreenLeaf<L>
Auto Trait Implementations§
impl<L> Freeze for GreenLeaf<L>
impl<L> RefUnwindSafe for GreenLeaf<L>
impl<L> Send for GreenLeaf<L>
impl<L> Sync for GreenLeaf<L>
impl<L> Unpin for GreenLeaf<L>
impl<L> UnwindSafe for GreenLeaf<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