Struct syntect::highlighting::Color [−][src]
Expand description
RGBA color, directly from the theme
Because these numbers come directly from the theme, you might have to do your own color space conversion if you’re outputting a different color space from the theme. This can be a problem because some Sublime themes use sRGB and some don’t. This is specified in an attribute syntect doesn’t parse yet.
Fields
r: u8
Red component
g: u8
Green component
b: u8
Blue component
a: u8
Alpha (transparency) component
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.