pub enum AtRuleType {
Show 22 variants
FontFace,
FontFeatureValues,
FontFeatureValuesBlock,
FontPaletteValues,
CounterStyle,
Media,
CustomMedia,
Container,
Supports,
Keyframes(Option<VendorPrefix>),
Page,
Property,
Document,
Import,
Namespace,
Layer,
Scope,
StartingStyle,
AppearanceBase,
PositionTry,
ViewTransition,
Margin(MarginRuleType),
}Variants§
FontFace
FontFeatureValues
FontFeatureValuesBlock
FontPaletteValues
CounterStyle
Media
CustomMedia
Container
Supports
Keyframes(Option<VendorPrefix>)
Page
Property
Document
Import
Namespace
Layer
Scope
StartingStyle
AppearanceBase
PositionTry
ViewTransition
Margin(MarginRuleType)
Implementations§
Source§impl AtRuleType
impl AtRuleType
fn from_name(name: &str, context: &ParserContext<'_>) -> Option<Self>
Sourcepub fn is_supported(name: &str, context: &ParserContext<'_>) -> bool
pub fn is_supported(name: &str, context: &ParserContext<'_>) -> bool
Returns whether the given at-rule is supported in any context.
https://drafts.csswg.org/css-conditional-5/#support-definition-at-rules
Auto Trait Implementations§
impl Freeze for AtRuleType
impl RefUnwindSafe for AtRuleType
impl Send for AtRuleType
impl Sync for AtRuleType
impl Unpin for AtRuleType
impl UnsafeUnpin for AtRuleType
impl UnwindSafe for AtRuleType
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