Enum cssparser::Color [−][src]
pub enum Color {
CurrentColor,
RGBA(RGBA),
}
Expand description
A
Variants
CurrentColor
The ‘currentcolor’ keyword
RGBA(RGBA)
Tuple Fields
0: RGBA
Everything else gets converted to RGBA during parsing
Implementations
pub fn parse_with<'i, 't, ComponentParser>(
component_parser: &ComponentParser,
input: &mut Parser<'i, 't>
) -> Result<Color, ParseError<'i, ComponentParser::Error>> where
ComponentParser: ColorComponentParser<'i>,
pub fn parse_with<'i, 't, ComponentParser>(
component_parser: &ComponentParser,
input: &mut Parser<'i, 't>
) -> Result<Color, ParseError<'i, ComponentParser::Error>> where
ComponentParser: ColorComponentParser<'i>,
Parse a
FIXME(#2) Deprecated CSS2 System Colors are not supported yet.
Parse a
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more