Enum swc_css_ast::QueryInParens
source · pub enum QueryInParens {
ContainerQuery(Box<ContainerQuery>),
SizeFeature(SizeFeature),
GeneralEnclosed(GeneralEnclosed),
}
Variants§
Implementations§
source§impl QueryInParens
impl QueryInParens
sourcepub fn is_container_query(&self) -> bool
pub fn is_container_query(&self) -> bool
Returns true
if self
is of variant ContainerQuery
.
sourcepub fn as_container_query(&self) -> Option<&Box<ContainerQuery>>
pub fn as_container_query(&self) -> Option<&Box<ContainerQuery>>
Returns Some
if self
is a reference of variant ContainerQuery
, and None
otherwise.
sourcepub fn as_mut_container_query(&mut self) -> Option<&mut Box<ContainerQuery>>
pub fn as_mut_container_query(&mut self) -> Option<&mut Box<ContainerQuery>>
Returns Some
if self
is a mutable reference of variant ContainerQuery
, and None
otherwise.
sourcepub fn expect_container_query(self) -> Box<ContainerQuery>where
Self: Debug,
pub fn expect_container_query(self) -> Box<ContainerQuery>where Self: Debug,
Unwraps the value, yielding the content of ContainerQuery
.
Panics
Panics if the value is not ContainerQuery
, with a panic message including the content of self
.
sourcepub fn container_query(self) -> Option<Box<ContainerQuery>>
pub fn container_query(self) -> Option<Box<ContainerQuery>>
Returns Some
if self
is of variant ContainerQuery
, and None
otherwise.
sourcepub fn is_size_feature(&self) -> bool
pub fn is_size_feature(&self) -> bool
Returns true
if self
is of variant SizeFeature
.
sourcepub fn as_size_feature(&self) -> Option<&SizeFeature>
pub fn as_size_feature(&self) -> Option<&SizeFeature>
Returns Some
if self
is a reference of variant SizeFeature
, and None
otherwise.
sourcepub fn as_mut_size_feature(&mut self) -> Option<&mut SizeFeature>
pub fn as_mut_size_feature(&mut self) -> Option<&mut SizeFeature>
Returns Some
if self
is a mutable reference of variant SizeFeature
, and None
otherwise.
sourcepub fn expect_size_feature(self) -> SizeFeaturewhere
Self: Debug,
pub fn expect_size_feature(self) -> SizeFeaturewhere Self: Debug,
Unwraps the value, yielding the content of SizeFeature
.
Panics
Panics if the value is not SizeFeature
, with a panic message including the content of self
.
sourcepub fn size_feature(self) -> Option<SizeFeature>
pub fn size_feature(self) -> Option<SizeFeature>
Returns Some
if self
is of variant SizeFeature
, 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) -> GeneralEnclosedwhere
Self: Debug,
pub fn expect_general_enclosed(self) -> GeneralEnclosedwhere 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§
source§impl Archive for QueryInParens
impl Archive for QueryInParens
§type Archived = ArchivedQueryInParens
type Archived = ArchivedQueryInParens
§type Resolver = QueryInParensResolver
type Resolver = QueryInParensResolver
source§impl Clone for QueryInParens
impl Clone for QueryInParens
source§fn clone(&self) -> QueryInParens
fn clone(&self) -> QueryInParens
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryInParens
impl Debug for QueryInParens
source§impl<'de> Deserialize<'de> for QueryInParens
impl<'de> Deserialize<'de> for QueryInParens
source§fn 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>,
source§impl<__D> Deserialize<QueryInParens, __D> for Archived<QueryInParens>where
__D: SharedDeserializeRegistry + Fallible + ?Sized,
impl<__D> Deserialize<QueryInParens, __D> for Archived<QueryInParens>where __D: SharedDeserializeRegistry + Fallible + ?Sized,
source§fn deserialize(
&self,
deserializer: &mut __D
) -> Result<QueryInParens, __D::Error>
fn deserialize( &self, deserializer: &mut __D ) -> Result<QueryInParens, __D::Error>
source§impl EqIgnoreSpan for QueryInParens
impl EqIgnoreSpan for QueryInParens
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<Box<ContainerQuery, Global>> for QueryInParens
impl From<Box<ContainerQuery, Global>> for QueryInParens
source§fn from(v: Box<ContainerQuery>) -> Self
fn from(v: Box<ContainerQuery>) -> Self
source§impl From<GeneralEnclosed> for QueryInParens
impl From<GeneralEnclosed> for QueryInParens
source§fn from(v: GeneralEnclosed) -> Self
fn from(v: GeneralEnclosed) -> Self
source§impl From<QueryInParens> for ContainerQueryType
impl From<QueryInParens> for ContainerQueryType
source§fn from(v: QueryInParens) -> Self
fn from(v: QueryInParens) -> Self
source§impl From<SizeFeature> for QueryInParens
impl From<SizeFeature> for QueryInParens
source§fn from(v: SizeFeature) -> Self
fn from(v: SizeFeature) -> Self
source§impl Hash for QueryInParens
impl Hash for QueryInParens
source§impl PartialEq<QueryInParens> for QueryInParens
impl PartialEq<QueryInParens> for QueryInParens
source§fn eq(&self, other: &QueryInParens) -> bool
fn eq(&self, other: &QueryInParens) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<__S> Serialize<__S> for QueryInParenswhere
__S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl<__S> Serialize<__S> for QueryInParenswhere __S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
source§impl Serialize for QueryInParens
impl Serialize for QueryInParens
source§impl Spanned for QueryInParens
impl Spanned for QueryInParens
impl Eq for QueryInParens
impl StructuralEq for QueryInParens
impl StructuralPartialEq for QueryInParens
Auto Trait Implementations§
impl RefUnwindSafe for QueryInParens
impl Send for QueryInParens
impl Sync for QueryInParens
impl Unpin for QueryInParens
impl UnwindSafe for QueryInParens
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive
, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.