Struct syntect::highlighting::Color
[−]
[src]
pub struct Color { pub r: u8, pub g: u8, pub b: u8, pub a: u8, }
RGBA colour, these numbers come directly from the theme so for now you might have to do your own colour space conversion if you are outputting a different colour 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 component
Methods
impl Color
[src]
const BLACK: Color
BLACK: Color = Color{r: 0, g: 0, b: 0, a: 255,}
Black color (#000000
)
const WHITE: Color
WHITE: Color = Color{r: 255, g: 255, b: 255, a: 255,}
White color (#FFFFFF
)
Trait Implementations
impl Debug for Color
[src]
impl Clone for Color
[src]
fn clone(&self) -> Color
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
[src]
This method tests for !=
.