pub struct AnnotatedToken {
pub token: Token,
pub category: TokenCategory,
pub depth: i32,
pub index: usize,
}Expand description
A token annotated with its depth and category.
Fields§
§token: Token§category: TokenCategory§depth: i32§index: usizeImplementations§
Trait Implementations§
Source§impl Clone for AnnotatedToken
impl Clone for AnnotatedToken
Source§fn clone(&self) -> AnnotatedToken
fn clone(&self) -> AnnotatedToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnnotatedToken
impl RefUnwindSafe for AnnotatedToken
impl Send for AnnotatedToken
impl Sync for AnnotatedToken
impl Unpin for AnnotatedToken
impl UnsafeUnpin for AnnotatedToken
impl UnwindSafe for AnnotatedToken
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