pub enum Semantic {
Show 16 variants
Keyword,
Symbol,
KeywordArg,
String,
Number,
Literal,
Comment,
Accent,
Muted,
Error,
Warning,
Info,
Hint,
Added,
Removed,
Unchanged,
}Expand description
The fleet semantic highlight class — the theme-facing vocabulary a renderer
maps to color. Variant set + order are load-bearing: they are
byte-identical to the historical escriba_ts::Semantic /
caixa_theme::Semantic so serde / JsonSchema output does not drift when
those crates re-export this one.
Variants§
Keyword
Symbol
KeywordArg
String
Number
Literal
Comment
Accent
Muted
Error
Warning
Info
Hint
Added
Removed
Unchanged
Implementations§
Trait Implementations§
impl Copy for Semantic
Source§impl<'de> Deserialize<'de> for Semantic
impl<'de> Deserialize<'de> for Semantic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Semantic
Source§impl From<Semantic> for HlClass
Semantic -> HlClass — total. Round-trips to identity through
hlclass_to_semantic for every Semantic variant (see the test), now
that HlClass carries the diagnostic + diff variants.
impl From<Semantic> for HlClass
Semantic -> HlClass — total. Round-trips to identity through
hlclass_to_semantic for every Semantic variant (see the test), now
that HlClass carries the diagnostic + diff variants.
impl StructuralPartialEq for Semantic
Auto Trait Implementations§
impl Freeze for Semantic
impl RefUnwindSafe for Semantic
impl Send for Semantic
impl Sync for Semantic
impl Unpin for Semantic
impl UnsafeUnpin for Semantic
impl UnwindSafe for Semantic
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