pub struct SemanticToken {
pub line: usize,
pub col: usize,
pub end_line: usize,
pub end_col: usize,
pub token_type: TokenType,
}Expand description
A classified source span, [ (line, col) .. (end_line, end_col) ), 1-based
with end_col exclusive — same convention as Diagnostic.
Fields§
§line: usize§col: usize§end_line: usize§end_col: usize§token_type: TokenTypeTrait Implementations§
Source§impl Clone for SemanticToken
impl Clone for SemanticToken
Source§fn clone(&self) -> SemanticToken
fn clone(&self) -> SemanticToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticToken
impl Debug for SemanticToken
impl Eq for SemanticToken
Source§impl PartialEq for SemanticToken
impl PartialEq for SemanticToken
impl StructuralPartialEq for SemanticToken
Auto Trait Implementations§
impl Freeze for SemanticToken
impl RefUnwindSafe for SemanticToken
impl Send for SemanticToken
impl Sync for SemanticToken
impl Unpin for SemanticToken
impl UnsafeUnpin for SemanticToken
impl UnwindSafe for SemanticToken
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