Enum swc_css_ast::KeyframesName
source · [−]pub enum KeyframesName {
CustomIdent(CustomIdent),
Str(Str),
}
Variants
CustomIdent(CustomIdent)
Str(Str)
Implementations
sourceimpl KeyframesName
impl KeyframesName
sourcepub fn is_custom_ident(&self) -> bool
pub fn is_custom_ident(&self) -> bool
Returns true
if self
is of variant CustomIdent
.
sourcepub fn as_custom_ident(&self) -> Option<&CustomIdent>
pub fn as_custom_ident(&self) -> Option<&CustomIdent>
Returns Some
if self
is a reference of variant CustomIdent
, and None
otherwise.
sourcepub fn as_mut_custom_ident(&mut self) -> Option<&mut CustomIdent>
pub fn as_mut_custom_ident(&mut self) -> Option<&mut CustomIdent>
Returns Some
if self
is a mutable reference of variant CustomIdent
, and None
otherwise.
sourcepub fn expect_custom_ident(self) -> CustomIdent where
Self: Debug,
pub fn expect_custom_ident(self) -> 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<CustomIdent>
pub fn custom_ident(self) -> Option<CustomIdent>
Returns Some
if self
is of variant CustomIdent
, and None
otherwise.
sourcepub fn as_str(&self) -> Option<&Str>
pub fn as_str(&self) -> Option<&Str>
Returns Some
if self
is a reference of variant Str
, and None
otherwise.
sourcepub fn as_mut_str(&mut self) -> Option<&mut Str>
pub fn as_mut_str(&mut self) -> Option<&mut Str>
Returns Some
if self
is a mutable reference of variant Str
, and None
otherwise.
sourcepub fn expect_str(self) -> Str where
Self: Debug,
pub fn expect_str(self) -> Str where
Self: Debug,
Trait Implementations
sourceimpl Clone for KeyframesName
impl Clone for KeyframesName
sourcefn clone(&self) -> KeyframesName
fn clone(&self) -> KeyframesName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyframesName
impl Debug for KeyframesName
sourceimpl<'de> Deserialize<'de> for KeyframesName
impl<'de> Deserialize<'de> for KeyframesName
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for KeyframesName
impl EqIgnoreSpan for KeyframesName
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<CustomIdent> for KeyframesName
impl From<CustomIdent> for KeyframesName
sourcefn from(v: CustomIdent) -> Self
fn from(v: CustomIdent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyframesName> for AtRulePrelude
impl From<KeyframesName> for AtRulePrelude
sourcefn from(v: KeyframesName) -> Self
fn from(v: KeyframesName) -> Self
Converts to this type from the input type.
sourceimpl From<Str> for KeyframesName
impl From<Str> for KeyframesName
sourceimpl Hash for KeyframesName
impl Hash for KeyframesName
sourceimpl PartialEq<KeyframesName> for KeyframesName
impl PartialEq<KeyframesName> for KeyframesName
sourcefn eq(&self, other: &KeyframesName) -> bool
fn eq(&self, other: &KeyframesName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyframesName) -> bool
fn ne(&self, other: &KeyframesName) -> bool
This method tests for !=
.
sourceimpl Serialize for KeyframesName
impl Serialize for KeyframesName
sourceimpl Spanned for KeyframesName
impl Spanned for KeyframesName
impl Eq for KeyframesName
impl StructuralEq for KeyframesName
impl StructuralPartialEq for KeyframesName
Auto Trait Implementations
impl RefUnwindSafe for KeyframesName
impl Send for KeyframesName
impl Sync for KeyframesName
impl Unpin for KeyframesName
impl UnwindSafe for KeyframesName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more