Struct style::properties_and_values::value::Parser
source · struct Parser<'a> {
syntax: &'a Descriptor,
output: &'a mut SmallVec<[SpecifiedValueComponent; 1]>,
output_multiplier: &'a mut Option<Multiplier>,
}
Fields§
§syntax: &'a Descriptor
§output: &'a mut SmallVec<[SpecifiedValueComponent; 1]>
§output_multiplier: &'a mut Option<Multiplier>
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
fn new( syntax: &'a Descriptor, output: &'a mut SmallVec<[SpecifiedValueComponent; 1]>, output_multiplier: &'a mut Option<Multiplier>, ) -> Self
fn parse<'i, 't>( &mut self, input: &mut CSSParser<'i, 't>, url_data: &UrlExtraData, allow_computationally_dependent: AllowComputationallyDependent, ) -> Result<(), StyleParseError<'i>>
fn parse_value<'i, 't>( context: &ParserContext<'_>, input: &mut CSSParser<'i, 't>, component: &SyntaxComponent, ) -> Result<SmallVec<[SpecifiedValueComponent; 1]>, StyleParseError<'i>>
fn parse_component_without_multiplier<'i, 't>( context: &ParserContext<'_>, input: &mut CSSParser<'i, 't>, component: &SyntaxComponent, ) -> Result<SpecifiedValueComponent, StyleParseError<'i>>
fn expect_multiplier_yielded_eof_error<'i>( result: &Result<(), StyleParseError<'i>>, ) -> bool
fn expect_multiplier<'i, 't>( input: &mut CSSParser<'i, 't>, multiplier: &Multiplier, ) -> Result<(), StyleParseError<'i>>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert