pub enum ComplexSelectorChildren {
CompoundSelector(CompoundSelector),
Combinator(Combinator),
}
Variants§
CompoundSelector(CompoundSelector)
Combinator(Combinator)
Implementations§
Source§impl ComplexSelectorChildren
impl ComplexSelectorChildren
Sourcepub const fn is_compound_selector(&self) -> bool
pub const fn is_compound_selector(&self) -> bool
Returns true
if self
is of variant CompoundSelector
.
Sourcepub fn as_compound_selector(&self) -> Option<&CompoundSelector>
pub fn as_compound_selector(&self) -> Option<&CompoundSelector>
Returns Some
if self
is a reference of variant CompoundSelector
, and None
otherwise.
Sourcepub fn as_mut_compound_selector(&mut self) -> Option<&mut CompoundSelector>
pub fn as_mut_compound_selector(&mut self) -> Option<&mut CompoundSelector>
Returns Some
if self
is a mutable reference of variant CompoundSelector
, and None
otherwise.
Sourcepub fn expect_compound_selector(self) -> CompoundSelectorwhere
Self: Debug,
pub fn expect_compound_selector(self) -> CompoundSelectorwhere
Self: Debug,
Unwraps the value, yielding the content of CompoundSelector
.
§Panics
Panics if the value is not CompoundSelector
, with a panic message including the content of self
.
Sourcepub fn compound_selector(self) -> Option<CompoundSelector>
pub fn compound_selector(self) -> Option<CompoundSelector>
Returns Some
if self
is of variant CompoundSelector
, and None
otherwise.
Sourcepub const fn is_combinator(&self) -> bool
pub const fn is_combinator(&self) -> bool
Returns true
if self
is of variant Combinator
.
Sourcepub fn as_combinator(&self) -> Option<&Combinator>
pub fn as_combinator(&self) -> Option<&Combinator>
Returns Some
if self
is a reference of variant Combinator
, and None
otherwise.
Sourcepub fn as_mut_combinator(&mut self) -> Option<&mut Combinator>
pub fn as_mut_combinator(&mut self) -> Option<&mut Combinator>
Returns Some
if self
is a mutable reference of variant Combinator
, and None
otherwise.
Sourcepub fn expect_combinator(self) -> Combinatorwhere
Self: Debug,
pub fn expect_combinator(self) -> Combinatorwhere
Self: Debug,
Unwraps the value, yielding the content of Combinator
.
§Panics
Panics if the value is not Combinator
, with a panic message including the content of self
.
Sourcepub fn combinator(self) -> Option<Combinator>
pub fn combinator(self) -> Option<Combinator>
Returns Some
if self
is of variant Combinator
, and None
otherwise.
Trait Implementations§
Source§impl Clone for ComplexSelectorChildren
impl Clone for ComplexSelectorChildren
Source§fn clone(&self) -> ComplexSelectorChildren
fn clone(&self) -> ComplexSelectorChildren
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComplexSelectorChildren
impl Debug for ComplexSelectorChildren
Source§impl EqIgnoreSpan for ComplexSelectorChildren
impl EqIgnoreSpan for ComplexSelectorChildren
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<Combinator> for ComplexSelectorChildren
impl From<Combinator> for ComplexSelectorChildren
Source§fn from(v: Combinator) -> Self
fn from(v: Combinator) -> Self
Source§impl From<CompoundSelector> for ComplexSelectorChildren
impl From<CompoundSelector> for ComplexSelectorChildren
Source§fn from(v: CompoundSelector) -> Self
fn from(v: CompoundSelector) -> Self
Source§impl Hash for ComplexSelectorChildren
impl Hash for ComplexSelectorChildren
Source§impl PartialEq for ComplexSelectorChildren
impl PartialEq for ComplexSelectorChildren
Source§impl Spanned for ComplexSelectorChildren
impl Spanned for ComplexSelectorChildren
impl Eq for ComplexSelectorChildren
impl StructuralPartialEq for ComplexSelectorChildren
Auto Trait Implementations§
impl Freeze for ComplexSelectorChildren
impl RefUnwindSafe for ComplexSelectorChildren
impl Send for ComplexSelectorChildren
impl Sync for ComplexSelectorChildren
impl Unpin for ComplexSelectorChildren
impl UnwindSafe for ComplexSelectorChildren
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