Struct lsp_types::SemanticToken
source · [−]pub struct SemanticToken {
pub delta_line: u32,
pub delta_start: u32,
pub length: u32,
pub token_type: u32,
pub token_modifiers_bitset: u32,
}
Expand description
The actual tokens. For a detailed description about how the data is structured please see https://github.com/microsoft/vscode-extension-samples/blob/5ae1f7787122812dcc84e37427ca90af5ee09f14/semantic-tokens-sample/vscode.proposed.d.ts#L71
Fields
delta_line: u32
delta_start: u32
length: u32
token_type: u32
token_modifiers_bitset: u32
Trait Implementations
sourceimpl Clone for SemanticToken
impl Clone for SemanticToken
sourcefn clone(&self) -> SemanticToken
fn clone(&self) -> SemanticToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SemanticToken
impl Debug for SemanticToken
sourceimpl Default for SemanticToken
impl Default for SemanticToken
sourcefn default() -> SemanticToken
fn default() -> SemanticToken
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SemanticToken> for SemanticToken
impl PartialEq<SemanticToken> for SemanticToken
sourcefn eq(&self, other: &SemanticToken) -> bool
fn eq(&self, other: &SemanticToken) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SemanticToken) -> bool
fn ne(&self, other: &SemanticToken) -> bool
This method tests for !=
.
impl Copy for SemanticToken
impl Eq for SemanticToken
impl StructuralEq for SemanticToken
impl StructuralPartialEq for SemanticToken
Auto Trait Implementations
impl RefUnwindSafe for SemanticToken
impl Send for SemanticToken
impl Sync for SemanticToken
impl Unpin for SemanticToken
impl UnwindSafe for SemanticToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more