pub enum Color {
CurrentColor,
RGBA(RGBA),
}
Expand description
A
Variants
CurrentColor
The ‘currentcolor’ keyword
RGBA(RGBA)
Everything else gets converted to RGBA during parsing
Implementations
sourceimpl Color
impl Color
sourcepub 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.
Trait Implementations
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more