#[non_exhaustive]pub struct ResolvedToken {
pub range: Range<usize>,
pub token_type: SemanticTokenType,
pub modifiers: SemanticTokenModifiers,
}Expand description
A semantic token resolved to absolute byte coordinates (pre delta-encoding).
#[non_exhaustive] so fields can be added without breaking downstream matches.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.range: Range<usize>Byte range of the token in the source.
token_type: SemanticTokenTypeThe LSP semantic token type this token maps to.
modifiers: SemanticTokenModifiersThe LSP semantic token modifiers (a bitset) for this token.
Trait Implementations§
Source§impl Clone for ResolvedToken
impl Clone for ResolvedToken
Source§fn clone(&self) -> ResolvedToken
fn clone(&self) -> ResolvedToken
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 ResolvedToken
impl Debug for ResolvedToken
impl Eq for ResolvedToken
Source§impl PartialEq for ResolvedToken
impl PartialEq for ResolvedToken
impl StructuralPartialEq for ResolvedToken
Auto Trait Implementations§
impl Freeze for ResolvedToken
impl RefUnwindSafe for ResolvedToken
impl Send for ResolvedToken
impl Sync for ResolvedToken
impl Unpin for ResolvedToken
impl UnsafeUnpin for ResolvedToken
impl UnwindSafe for ResolvedToken
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