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
Represents a semantic token (serialized as five uintegers).
Fields§
§delta_line: u32Token line number, relative to the start of the previous token.
delta_start: u32Token start character, relative to the start of the previous token (relative to 0 or the previous token’s start if they are on the same line).
length: u32The length of the token.
token_type: u32Will be looked up in SemanticTokensLegend::token_types. We currently ask that
tokenType < 65536.
token_modifiers_bitset: u32Each set bit will be looked up in SemanticTokensLegend::token_modifiers.
Trait 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
Source§impl Default for SemanticToken
impl Default for SemanticToken
Source§fn default() -> SemanticToken
fn default() -> SemanticToken
Returns the “default value” for a type. Read more
Source§impl Hash for SemanticToken
impl Hash for SemanticToken
Source§impl PartialEq for SemanticToken
impl PartialEq for SemanticToken
Source§fn eq(&self, other: &SemanticToken) -> bool
fn eq(&self, other: &SemanticToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SemanticToken
impl Eq 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