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

Red component

Green component

Blue component

Alpha component

Trait Implementations

impl Debug for Color
[src]

Formats the value using the given formatter.

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl PartialEq for Color
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Color
[src]

impl FromStr for Color
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more