#[non_exhaustive]pub struct SemanticTokens {
pub tokens: Vec<ResolvedToken>,
pub injections: Vec<Injection>,
}Expand description
The full semantic-token result: the per-token tagging plus the embedded-language regions.
#[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.tokens: Vec<ResolvedToken>Every significant token, tagged with its LSP type + modifiers (trivia/punctuation dropped).
injections: Vec<Injection>The $$ … $$ embedded-language regions detected in the source.
Trait Implementations§
Source§impl Clone for SemanticTokens
impl Clone for SemanticTokens
Source§fn clone(&self) -> SemanticTokens
fn clone(&self) -> SemanticTokens
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 SemanticTokens
impl Debug for SemanticTokens
impl Eq for SemanticTokens
Source§impl PartialEq for SemanticTokens
impl PartialEq for SemanticTokens
impl StructuralPartialEq for SemanticTokens
Auto Trait Implementations§
impl Freeze for SemanticTokens
impl RefUnwindSafe for SemanticTokens
impl Send for SemanticTokens
impl Sync for SemanticTokens
impl Unpin for SemanticTokens
impl UnsafeUnpin for SemanticTokens
impl UnwindSafe for SemanticTokens
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