Struct cssparser_color::DefaultColorParser
source · pub struct DefaultColorParser;
Expand description
Default implementation of a ColorParser
Trait Implementations§
source§impl<'i> ColorParser<'i> for DefaultColorParser
impl<'i> ColorParser<'i> for DefaultColorParser
source§fn parse_angle_or_number<'t>(
&self,
input: &mut Parser<'i, 't>
) -> Result<AngleOrNumber, ParseError<'i, Self::Error>>
fn parse_angle_or_number<'t>( &self, input: &mut Parser<'i, 't> ) -> Result<AngleOrNumber, ParseError<'i, Self::Error>>
source§fn parse_percentage<'t>(
&self,
input: &mut Parser<'i, 't>
) -> Result<f32, ParseError<'i, Self::Error>>
fn parse_percentage<'t>( &self, input: &mut Parser<'i, 't> ) -> Result<f32, ParseError<'i, Self::Error>>
Parse a
<percentage>
value. Read moresource§fn parse_number<'t>(
&self,
input: &mut Parser<'i, 't>
) -> Result<f32, ParseError<'i, Self::Error>>
fn parse_number<'t>( &self, input: &mut Parser<'i, 't> ) -> Result<f32, ParseError<'i, Self::Error>>
Parse a
<number>
value.source§fn parse_number_or_percentage<'t>(
&self,
input: &mut Parser<'i, 't>
) -> Result<NumberOrPercentage, ParseError<'i, Self::Error>>
fn parse_number_or_percentage<'t>( &self, input: &mut Parser<'i, 't> ) -> Result<NumberOrPercentage, ParseError<'i, Self::Error>>
Parse a
<number>
value or a <percentage>
value.Auto Trait Implementations§
impl RefUnwindSafe for DefaultColorParser
impl Send for DefaultColorParser
impl Sync for DefaultColorParser
impl Unpin for DefaultColorParser
impl UnwindSafe for DefaultColorParser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more