cssparser

Function parse_color_with

Source
pub fn parse_color_with<'i, 't, P>(
    color_parser: &P,
    input: &mut Parser<'i, 't>,
) -> Result<P::Output, ParseError<'i, P::Error>>
where P: ColorParser<'i>,
Expand description

Parse a CSS color using the specified ColorParser and return a new color value on success.