pub enum AtRulePrelude {
Show 19 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),
CustomMedia(DashedIdent, CustomMediaCondition),
}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.
CustomMedia(DashedIdent, CustomMediaCondition)
A @custom-media prelude.
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
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>
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>
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