Enum style::stylesheets::rule_parser::AtRulePrelude
source · pub enum AtRulePrelude {
Show 18 variants
FontFace,
FontFeatureValues(Vec<FamilyName>),
FontPaletteValues(DashedIdent),
CounterStyle(CustomIdent),
Media(Arc<Locked<MediaList>>),
Container(Arc<ContainerCondition>),
Supports(SupportsCondition),
Keyframes(KeyframesName, Option<VendorPrefix>),
Page(PageSelectors),
Property(PropertyRuleName),
Document(DocumentCondition),
Import(CssUrl, Arc<Locked<MediaList>>, Option<ImportSupportsCondition>, ImportLayer),
Margin(MarginRuleType),
Namespace(Option<Prefix>, Namespace),
Layer(Vec<LayerName>),
Scope(ScopeBounds),
StartingStyle,
PositionTry(DashedIdent),
}
Expand description
A rule prelude for at-rule with block.
Variants§
FontFace
A @font-face rule prelude.
FontFeatureValues(Vec<FamilyName>)
A @font-feature-values rule prelude, with its FamilyName list.
FontPaletteValues(DashedIdent)
A @font-palette-values rule prelude, with its identifier.
CounterStyle(CustomIdent)
A @counter-style rule prelude, with its counter style name.
Media(Arc<Locked<MediaList>>)
A @media rule prelude, with its media queries.
Container(Arc<ContainerCondition>)
A @container rule prelude.
Supports(SupportsCondition)
An @supports rule, with its conditional
Keyframes(KeyframesName, Option<VendorPrefix>)
A @keyframes rule, with its animation name and vendor prefix if exists.
Page(PageSelectors)
A @page rule prelude, with its page name if it exists.
Property(PropertyRuleName)
A @property rule prelude.
Document(DocumentCondition)
A @document rule, with its conditional.
Import(CssUrl, Arc<Locked<MediaList>>, Option<ImportSupportsCondition>, ImportLayer)
A @import rule prelude.
Margin(MarginRuleType)
A @margin rule prelude.
Namespace(Option<Prefix>, Namespace)
A @namespace rule prelude.
Layer(Vec<LayerName>)
A @layer rule prelude.
Scope(ScopeBounds)
A @scope rule prelude.
StartingStyle
A @starting-style prelude.
PositionTry(DashedIdent)
A @position-try prelude for Anchor Positioning.
Implementations§
Auto Trait Implementations§
impl Freeze for AtRulePrelude
impl !RefUnwindSafe for AtRulePrelude
impl Send for AtRulePrelude
impl Sync for AtRulePrelude
impl Unpin for AtRulePrelude
impl !UnwindSafe for AtRulePrelude
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