Enum swc_css_ast::ContainerQueryType
source · pub enum ContainerQueryType {
Not(ContainerQueryNot),
And(ContainerQueryAnd),
Or(ContainerQueryOr),
QueryInParens(QueryInParens),
}
Variants§
Implementations§
source§impl ContainerQueryType
impl ContainerQueryType
sourcepub fn as_not(&self) -> Option<&ContainerQueryNot>
pub fn as_not(&self) -> Option<&ContainerQueryNot>
Returns Some
if self
is a reference of variant Not
, and None
otherwise.
sourcepub fn as_mut_not(&mut self) -> Option<&mut ContainerQueryNot>
pub fn as_mut_not(&mut self) -> Option<&mut ContainerQueryNot>
Returns Some
if self
is a mutable reference of variant Not
, and None
otherwise.
sourcepub fn expect_not(self) -> ContainerQueryNotwhere
Self: Debug,
pub fn expect_not(self) -> ContainerQueryNotwhere
Self: Debug,
sourcepub fn not(self) -> Option<ContainerQueryNot>
pub fn not(self) -> Option<ContainerQueryNot>
Returns Some
if self
is of variant Not
, and None
otherwise.
sourcepub fn as_and(&self) -> Option<&ContainerQueryAnd>
pub fn as_and(&self) -> Option<&ContainerQueryAnd>
Returns Some
if self
is a reference of variant And
, and None
otherwise.
sourcepub fn as_mut_and(&mut self) -> Option<&mut ContainerQueryAnd>
pub fn as_mut_and(&mut self) -> Option<&mut ContainerQueryAnd>
Returns Some
if self
is a mutable reference of variant And
, and None
otherwise.
sourcepub fn expect_and(self) -> ContainerQueryAndwhere
Self: Debug,
pub fn expect_and(self) -> ContainerQueryAndwhere
Self: Debug,
sourcepub fn and(self) -> Option<ContainerQueryAnd>
pub fn and(self) -> Option<ContainerQueryAnd>
Returns Some
if self
is of variant And
, and None
otherwise.
sourcepub fn as_or(&self) -> Option<&ContainerQueryOr>
pub fn as_or(&self) -> Option<&ContainerQueryOr>
Returns Some
if self
is a reference of variant Or
, and None
otherwise.
sourcepub fn as_mut_or(&mut self) -> Option<&mut ContainerQueryOr>
pub fn as_mut_or(&mut self) -> Option<&mut ContainerQueryOr>
Returns Some
if self
is a mutable reference of variant Or
, and None
otherwise.
sourcepub fn expect_or(self) -> ContainerQueryOrwhere
Self: Debug,
pub fn expect_or(self) -> ContainerQueryOrwhere
Self: Debug,
sourcepub fn or(self) -> Option<ContainerQueryOr>
pub fn or(self) -> Option<ContainerQueryOr>
Returns Some
if self
is of variant Or
, and None
otherwise.
sourcepub const fn is_query_in_parens(&self) -> bool
pub const fn is_query_in_parens(&self) -> bool
Returns true
if self
is of variant QueryInParens
.
sourcepub fn as_query_in_parens(&self) -> Option<&QueryInParens>
pub fn as_query_in_parens(&self) -> Option<&QueryInParens>
Returns Some
if self
is a reference of variant QueryInParens
, and None
otherwise.
sourcepub fn as_mut_query_in_parens(&mut self) -> Option<&mut QueryInParens>
pub fn as_mut_query_in_parens(&mut self) -> Option<&mut QueryInParens>
Returns Some
if self
is a mutable reference of variant QueryInParens
, and None
otherwise.
sourcepub fn expect_query_in_parens(self) -> QueryInParenswhere
Self: Debug,
pub fn expect_query_in_parens(self) -> QueryInParenswhere
Self: Debug,
Unwraps the value, yielding the content of QueryInParens
.
§Panics
Panics if the value is not QueryInParens
, with a panic message including the content of self
.
sourcepub fn query_in_parens(self) -> Option<QueryInParens>
pub fn query_in_parens(self) -> Option<QueryInParens>
Returns Some
if self
is of variant QueryInParens
, and None
otherwise.
Trait Implementations§
source§impl Clone for ContainerQueryType
impl Clone for ContainerQueryType
source§fn clone(&self) -> ContainerQueryType
fn clone(&self) -> ContainerQueryType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerQueryType
impl Debug for ContainerQueryType
source§impl EqIgnoreSpan for ContainerQueryType
impl EqIgnoreSpan for ContainerQueryType
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<ContainerQueryAnd> for ContainerQueryType
impl From<ContainerQueryAnd> for ContainerQueryType
source§fn from(v: ContainerQueryAnd) -> Self
fn from(v: ContainerQueryAnd) -> Self
source§impl From<ContainerQueryNot> for ContainerQueryType
impl From<ContainerQueryNot> for ContainerQueryType
source§fn from(v: ContainerQueryNot) -> Self
fn from(v: ContainerQueryNot) -> Self
source§impl From<ContainerQueryOr> for ContainerQueryType
impl From<ContainerQueryOr> for ContainerQueryType
source§fn from(v: ContainerQueryOr) -> Self
fn from(v: ContainerQueryOr) -> 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 Hash for ContainerQueryType
impl Hash for ContainerQueryType
source§impl PartialEq for ContainerQueryType
impl PartialEq for ContainerQueryType
source§impl Spanned for ContainerQueryType
impl Spanned for ContainerQueryType
impl Eq for ContainerQueryType
impl StructuralPartialEq for ContainerQueryType
Auto Trait Implementations§
impl Freeze for ContainerQueryType
impl RefUnwindSafe for ContainerQueryType
impl Send for ContainerQueryType
impl Sync for ContainerQueryType
impl Unpin for ContainerQueryType
impl UnwindSafe for ContainerQueryType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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