Enum swc_css_ast::SupportsInParens
source · [−]pub enum SupportsInParens {
SupportsCondition(SupportsCondition),
Feature(SupportsFeature),
GeneralEnclosed(GeneralEnclosed),
}
Variants
SupportsCondition(SupportsCondition)
Feature(SupportsFeature)
GeneralEnclosed(GeneralEnclosed)
Implementations
sourceimpl SupportsInParens
impl SupportsInParens
sourcepub fn is_supports_condition(&self) -> bool
pub fn is_supports_condition(&self) -> bool
Returns true
if self
is of variant SupportsCondition
.
sourcepub fn as_supports_condition(&self) -> Option<&SupportsCondition>
pub fn as_supports_condition(&self) -> Option<&SupportsCondition>
Returns Some
if self
is a reference of variant SupportsCondition
, and None
otherwise.
sourcepub fn as_mut_supports_condition(&mut self) -> Option<&mut SupportsCondition>
pub fn as_mut_supports_condition(&mut self) -> Option<&mut SupportsCondition>
Returns Some
if self
is a mutable reference of variant SupportsCondition
, and None
otherwise.
sourcepub fn expect_supports_condition(self) -> SupportsCondition where
Self: Debug,
pub fn expect_supports_condition(self) -> SupportsCondition where
Self: Debug,
Unwraps the value, yielding the content of SupportsCondition
.
Panics
Panics if the value is not SupportsCondition
, with a panic message including the content of self
.
sourcepub fn supports_condition(self) -> Option<SupportsCondition>
pub fn supports_condition(self) -> Option<SupportsCondition>
Returns Some
if self
is of variant SupportsCondition
, and None
otherwise.
sourcepub fn is_feature(&self) -> bool
pub fn is_feature(&self) -> bool
Returns true
if self
is of variant Feature
.
sourcepub fn as_feature(&self) -> Option<&SupportsFeature>
pub fn as_feature(&self) -> Option<&SupportsFeature>
Returns Some
if self
is a reference of variant Feature
, and None
otherwise.
sourcepub fn as_mut_feature(&mut self) -> Option<&mut SupportsFeature>
pub fn as_mut_feature(&mut self) -> Option<&mut SupportsFeature>
Returns Some
if self
is a mutable reference of variant Feature
, and None
otherwise.
sourcepub fn expect_feature(self) -> SupportsFeature where
Self: Debug,
pub fn expect_feature(self) -> SupportsFeature where
Self: Debug,
sourcepub fn feature(self) -> Option<SupportsFeature>
pub fn feature(self) -> Option<SupportsFeature>
Returns Some
if self
is of variant Feature
, and None
otherwise.
sourcepub fn is_general_enclosed(&self) -> bool
pub fn is_general_enclosed(&self) -> bool
Returns true
if self
is of variant GeneralEnclosed
.
sourcepub fn as_general_enclosed(&self) -> Option<&GeneralEnclosed>
pub fn as_general_enclosed(&self) -> Option<&GeneralEnclosed>
Returns Some
if self
is a reference of variant GeneralEnclosed
, and None
otherwise.
sourcepub fn as_mut_general_enclosed(&mut self) -> Option<&mut GeneralEnclosed>
pub fn as_mut_general_enclosed(&mut self) -> Option<&mut GeneralEnclosed>
Returns Some
if self
is a mutable reference of variant GeneralEnclosed
, and None
otherwise.
sourcepub fn expect_general_enclosed(self) -> GeneralEnclosed where
Self: Debug,
pub fn expect_general_enclosed(self) -> GeneralEnclosed where
Self: Debug,
Unwraps the value, yielding the content of GeneralEnclosed
.
Panics
Panics if the value is not GeneralEnclosed
, with a panic message including the content of self
.
sourcepub fn general_enclosed(self) -> Option<GeneralEnclosed>
pub fn general_enclosed(self) -> Option<GeneralEnclosed>
Returns Some
if self
is of variant GeneralEnclosed
, and None
otherwise.
Trait Implementations
sourceimpl Clone for SupportsInParens
impl Clone for SupportsInParens
sourcefn clone(&self) -> SupportsInParens
fn clone(&self) -> SupportsInParens
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 SupportsInParens
impl Debug for SupportsInParens
sourceimpl<'de> Deserialize<'de> for SupportsInParens
impl<'de> Deserialize<'de> for SupportsInParens
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 SupportsInParens
impl EqIgnoreSpan for SupportsInParens
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<GeneralEnclosed> for SupportsInParens
impl From<GeneralEnclosed> for SupportsInParens
sourcefn from(v: GeneralEnclosed) -> Self
fn from(v: GeneralEnclosed) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsCondition> for SupportsInParens
impl From<SupportsCondition> for SupportsInParens
sourcefn from(v: SupportsCondition) -> Self
fn from(v: SupportsCondition) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsFeature> for SupportsInParens
impl From<SupportsFeature> for SupportsInParens
sourcefn from(v: SupportsFeature) -> Self
fn from(v: SupportsFeature) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsInParens> for SupportsConditionType
impl From<SupportsInParens> for SupportsConditionType
sourcefn from(v: SupportsInParens) -> Self
fn from(v: SupportsInParens) -> Self
Converts to this type from the input type.
sourceimpl Hash for SupportsInParens
impl Hash for SupportsInParens
sourceimpl PartialEq<SupportsInParens> for SupportsInParens
impl PartialEq<SupportsInParens> for SupportsInParens
sourcefn eq(&self, other: &SupportsInParens) -> bool
fn eq(&self, other: &SupportsInParens) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for SupportsInParens
impl Serialize for SupportsInParens
sourceimpl Spanned for SupportsInParens
impl Spanned for SupportsInParens
impl Eq for SupportsInParens
impl StructuralEq for SupportsInParens
impl StructuralPartialEq for SupportsInParens
Auto Trait Implementations
impl RefUnwindSafe for SupportsInParens
impl Send for SupportsInParens
impl Sync for SupportsInParens
impl Unpin for SupportsInParens
impl UnwindSafe for SupportsInParens
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