pub struct TokenInfo {
pub text: String,
pub kind: Option<TokenKind>,
}Expand description
Information about a found token
Fields§
§text: StringThe token text (truncated if very long)
kind: Option<TokenKind>The token kind (if identifiable)
Implementations§
Trait Implementations§
impl StructuralPartialEq for TokenInfo
Auto Trait Implementations§
impl Freeze for TokenInfo
impl RefUnwindSafe for TokenInfo
impl Send for TokenInfo
impl Sync for TokenInfo
impl Unpin for TokenInfo
impl UnsafeUnpin for TokenInfo
impl UnwindSafe for TokenInfo
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