pub struct SemanticTokenModifiers(/* private fields */);Expand description
LSP semantic token modifiers, as a bitset. Only the few the lexical layer can justify are
modelled; bits() produces the tokenModifiers value an editor decodes against its legend.
Implementations§
Source§impl SemanticTokenModifiers
impl SemanticTokenModifiers
pub const NONE: SemanticTokenModifiers
Sourcepub const DOCUMENTATION: SemanticTokenModifiers
pub const DOCUMENTATION: SemanticTokenModifiers
documentation — block/line comments.
Sourcepub const DEFAULT_LIBRARY: SemanticTokenModifiers
pub const DEFAULT_LIBRARY: SemanticTokenModifiers
defaultLibrary — built-in types and keywords are part of the language, not user code.
Sourcepub const LEGEND: &'static [&'static str]
pub const LEGEND: &'static [&'static str]
The modifier legend, in bit order; an editor declares this in its capabilities.
Sourcepub const fn contains(self, other: SemanticTokenModifiers) -> bool
pub const fn contains(self, other: SemanticTokenModifiers) -> bool
Whether other’s bits are all set in self.
Trait Implementations§
Source§impl BitOr for SemanticTokenModifiers
impl BitOr for SemanticTokenModifiers
Source§type Output = SemanticTokenModifiers
type Output = SemanticTokenModifiers
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: SemanticTokenModifiers) -> SemanticTokenModifiers
fn bitor(self, rhs: SemanticTokenModifiers) -> SemanticTokenModifiers
Performs the
| operation. Read moreSource§impl Clone for SemanticTokenModifiers
impl Clone for SemanticTokenModifiers
Source§fn clone(&self) -> SemanticTokenModifiers
fn clone(&self) -> SemanticTokenModifiers
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 moreimpl Copy for SemanticTokenModifiers
Source§impl Debug for SemanticTokenModifiers
impl Debug for SemanticTokenModifiers
Source§impl Default for SemanticTokenModifiers
impl Default for SemanticTokenModifiers
Source§fn default() -> SemanticTokenModifiers
fn default() -> SemanticTokenModifiers
Returns the “default value” for a type. Read more
impl Eq for SemanticTokenModifiers
Source§impl PartialEq for SemanticTokenModifiers
impl PartialEq for SemanticTokenModifiers
impl StructuralPartialEq for SemanticTokenModifiers
Auto Trait Implementations§
impl Freeze for SemanticTokenModifiers
impl RefUnwindSafe for SemanticTokenModifiers
impl Send for SemanticTokenModifiers
impl Sync for SemanticTokenModifiers
impl Unpin for SemanticTokenModifiers
impl UnsafeUnpin for SemanticTokenModifiers
impl UnwindSafe for SemanticTokenModifiers
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