pub struct RcssAtRuleParser;
Trait Implementations§
Source§impl<'i> AtRuleParser<'i> for RcssAtRuleParser
impl<'i> AtRuleParser<'i> for RcssAtRuleParser
Source§type Prelude = RcssAtRuleConfig
type Prelude = RcssAtRuleConfig
The intermediate representation of prelude of an at-rule.
Source§type AtRule = RcssAtRuleConfig
type AtRule = RcssAtRuleConfig
The finished representation of an at-rule.
Source§type Error = AtRuleError
type Error = AtRuleError
The error type that is included in the ParseError value that can be returned.
Source§fn parse_prelude<'t>(
&mut self,
name: CowRcStr<'i>,
input: &mut Parser<'i, 't>,
_options: &ParserOptions<'_, 'i>,
) -> Result<Self::Prelude, ParseError<'i, Self::Error>>
fn parse_prelude<'t>( &mut self, name: CowRcStr<'i>, input: &mut Parser<'i, 't>, _options: &ParserOptions<'_, 'i>, ) -> Result<Self::Prelude, ParseError<'i, Self::Error>>
Parse the prelude of an at-rule with the given
name
. Read moreSource§fn parse_block<'t>(
&mut self,
_prelude: Self::Prelude,
_start: &ParserState,
input: &mut Parser<'i, 't>,
_options: &ParserOptions<'_, 'i>,
_is_nested: bool,
) -> Result<Self::AtRule, ParseError<'i, Self::Error>>
fn parse_block<'t>( &mut self, _prelude: Self::Prelude, _start: &ParserState, input: &mut Parser<'i, 't>, _options: &ParserOptions<'_, 'i>, _is_nested: bool, ) -> Result<Self::AtRule, ParseError<'i, Self::Error>>
Parse the content of a
{ /* ... */ }
block for the body of the at-rule. Read moreSource§fn rule_without_block(
&mut self,
prelude: Self::Prelude,
_start: &ParserState,
_options: &ParserOptions<'_, 'i>,
_is_nested: bool,
) -> Result<Self::AtRule, ()>
fn rule_without_block( &mut self, prelude: Self::Prelude, _start: &ParserState, _options: &ParserOptions<'_, 'i>, _is_nested: bool, ) -> Result<Self::AtRule, ()>
End an at-rule which doesn’t have block. Return the finished
representation of the at-rule. Read more
Auto Trait Implementations§
impl Freeze for RcssAtRuleParser
impl RefUnwindSafe for RcssAtRuleParser
impl Send for RcssAtRuleParser
impl Sync for RcssAtRuleParser
impl Unpin for RcssAtRuleParser
impl UnwindSafe for RcssAtRuleParser
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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 more