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 Freeze for DefaultColorParser
impl RefUnwindSafe for DefaultColorParser
impl Send for DefaultColorParser
impl Sync for DefaultColorParser
impl Unpin for DefaultColorParser
impl UnsafeUnpin 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