pub enum KeyframesName {
CustomIdent(Box<CustomIdent>),
Str(Box<Str>),
PseudoPrefix(Box<KeyframesPseudoPrefix>),
PseudoFunction(Box<KeyframesPseudoFunction>),
}
Variants§
CustomIdent(Box<CustomIdent>)
Str(Box<Str>)
PseudoPrefix(Box<KeyframesPseudoPrefix>)
Only for CSS modules
PseudoFunction(Box<KeyframesPseudoFunction>)
Only for CSS modules
Implementations§
Source§impl KeyframesName
impl KeyframesName
Sourcepub const fn is_custom_ident(&self) -> bool
pub const fn is_custom_ident(&self) -> bool
Returns true
if self
is of variant CustomIdent
.
Sourcepub fn as_custom_ident(&self) -> Option<&Box<CustomIdent>>
pub fn as_custom_ident(&self) -> Option<&Box<CustomIdent>>
Returns Some
if self
is a reference of variant CustomIdent
, and None
otherwise.
Sourcepub fn as_mut_custom_ident(&mut self) -> Option<&mut Box<CustomIdent>>
pub fn as_mut_custom_ident(&mut self) -> Option<&mut Box<CustomIdent>>
Returns Some
if self
is a mutable reference of variant CustomIdent
, and None
otherwise.
Sourcepub fn expect_custom_ident(self) -> Box<CustomIdent>where
Self: Debug,
pub fn expect_custom_ident(self) -> Box<CustomIdent>where
Self: Debug,
Unwraps the value, yielding the content of CustomIdent
.
§Panics
Panics if the value is not CustomIdent
, with a panic message including the content of self
.
Sourcepub fn custom_ident(self) -> Option<Box<CustomIdent>>
pub fn custom_ident(self) -> Option<Box<CustomIdent>>
Returns Some
if self
is of variant CustomIdent
, and None
otherwise.
Sourcepub fn as_str(&self) -> Option<&Box<Str>>
pub fn as_str(&self) -> Option<&Box<Str>>
Returns Some
if self
is a reference of variant Str
, and None
otherwise.
Sourcepub fn as_mut_str(&mut self) -> Option<&mut Box<Str>>
pub fn as_mut_str(&mut self) -> Option<&mut Box<Str>>
Returns Some
if self
is a mutable reference of variant Str
, and None
otherwise.
Sourcepub fn expect_str(self) -> Box<Str>where
Self: Debug,
pub fn expect_str(self) -> Box<Str>where
Self: Debug,
Sourcepub fn str(self) -> Option<Box<Str>>
pub fn str(self) -> Option<Box<Str>>
Returns Some
if self
is of variant Str
, and None
otherwise.
Sourcepub const fn is_pseudo_prefix(&self) -> bool
pub const fn is_pseudo_prefix(&self) -> bool
Returns true
if self
is of variant PseudoPrefix
.
Sourcepub fn as_pseudo_prefix(&self) -> Option<&Box<KeyframesPseudoPrefix>>
pub fn as_pseudo_prefix(&self) -> Option<&Box<KeyframesPseudoPrefix>>
Returns Some
if self
is a reference of variant PseudoPrefix
, and None
otherwise.
Sourcepub fn as_mut_pseudo_prefix(
&mut self,
) -> Option<&mut Box<KeyframesPseudoPrefix>>
pub fn as_mut_pseudo_prefix( &mut self, ) -> Option<&mut Box<KeyframesPseudoPrefix>>
Returns Some
if self
is a mutable reference of variant PseudoPrefix
, and None
otherwise.
Sourcepub fn expect_pseudo_prefix(self) -> Box<KeyframesPseudoPrefix>where
Self: Debug,
pub fn expect_pseudo_prefix(self) -> Box<KeyframesPseudoPrefix>where
Self: Debug,
Unwraps the value, yielding the content of PseudoPrefix
.
§Panics
Panics if the value is not PseudoPrefix
, with a panic message including the content of self
.
Sourcepub fn pseudo_prefix(self) -> Option<Box<KeyframesPseudoPrefix>>
pub fn pseudo_prefix(self) -> Option<Box<KeyframesPseudoPrefix>>
Returns Some
if self
is of variant PseudoPrefix
, and None
otherwise.
Sourcepub const fn is_pseudo_function(&self) -> bool
pub const fn is_pseudo_function(&self) -> bool
Returns true
if self
is of variant PseudoFunction
.
Sourcepub fn as_pseudo_function(&self) -> Option<&Box<KeyframesPseudoFunction>>
pub fn as_pseudo_function(&self) -> Option<&Box<KeyframesPseudoFunction>>
Returns Some
if self
is a reference of variant PseudoFunction
, and None
otherwise.
Sourcepub fn as_mut_pseudo_function(
&mut self,
) -> Option<&mut Box<KeyframesPseudoFunction>>
pub fn as_mut_pseudo_function( &mut self, ) -> Option<&mut Box<KeyframesPseudoFunction>>
Returns Some
if self
is a mutable reference of variant PseudoFunction
, and None
otherwise.
Sourcepub fn expect_pseudo_function(self) -> Box<KeyframesPseudoFunction>where
Self: Debug,
pub fn expect_pseudo_function(self) -> Box<KeyframesPseudoFunction>where
Self: Debug,
Unwraps the value, yielding the content of PseudoFunction
.
§Panics
Panics if the value is not PseudoFunction
, with a panic message including the content of self
.
Sourcepub fn pseudo_function(self) -> Option<Box<KeyframesPseudoFunction>>
pub fn pseudo_function(self) -> Option<Box<KeyframesPseudoFunction>>
Returns Some
if self
is of variant PseudoFunction
, and None
otherwise.
Trait Implementations§
Source§impl Clone for KeyframesName
impl Clone for KeyframesName
Source§fn clone(&self) -> KeyframesName
fn clone(&self) -> KeyframesName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for KeyframesName
impl Debug for KeyframesName
Source§impl EqIgnoreSpan for KeyframesName
impl EqIgnoreSpan for KeyframesName
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<Box<CustomIdent>> for KeyframesName
impl From<Box<CustomIdent>> for KeyframesName
Source§fn from(v: Box<CustomIdent>) -> Self
fn from(v: Box<CustomIdent>) -> Self
Source§impl From<Box<KeyframesPseudoFunction>> for KeyframesName
impl From<Box<KeyframesPseudoFunction>> for KeyframesName
Source§fn from(v: Box<KeyframesPseudoFunction>) -> Self
fn from(v: Box<KeyframesPseudoFunction>) -> Self
Source§impl From<Box<KeyframesPseudoPrefix>> for KeyframesName
impl From<Box<KeyframesPseudoPrefix>> for KeyframesName
Source§fn from(v: Box<KeyframesPseudoPrefix>) -> Self
fn from(v: Box<KeyframesPseudoPrefix>) -> Self
Source§impl From<KeyframesName> for AtRulePrelude
impl From<KeyframesName> for AtRulePrelude
Source§fn from(v: KeyframesName) -> Self
fn from(v: KeyframesName) -> Self
Source§impl Hash for KeyframesName
impl Hash for KeyframesName
Source§impl PartialEq for KeyframesName
impl PartialEq for KeyframesName
Source§impl Spanned for KeyframesName
impl Spanned for KeyframesName
impl Eq for KeyframesName
impl StructuralPartialEq for KeyframesName
Auto Trait Implementations§
impl Freeze for KeyframesName
impl RefUnwindSafe for KeyframesName
impl Send for KeyframesName
impl Sync for KeyframesName
impl Unpin for KeyframesName
impl UnwindSafe for KeyframesName
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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