pub enum AnPlusB {
Ident(Ident),
AnPlusBNotation(AnPlusBNotation),
}
Variants§
Ident(Ident)
AnPlusBNotation(AnPlusBNotation)
Implementations§
Source§impl AnPlusB
impl AnPlusB
Sourcepub fn as_ident(&self) -> Option<&Ident>
pub fn as_ident(&self) -> Option<&Ident>
Returns Some
if self
is a reference of variant Ident
, and None
otherwise.
Sourcepub fn as_mut_ident(&mut self) -> Option<&mut Ident>
pub fn as_mut_ident(&mut self) -> Option<&mut Ident>
Returns Some
if self
is a mutable reference of variant Ident
, and None
otherwise.
Sourcepub fn expect_ident(self) -> Identwhere
Self: Debug,
pub fn expect_ident(self) -> Identwhere
Self: Debug,
Sourcepub fn ident(self) -> Option<Ident>
pub fn ident(self) -> Option<Ident>
Returns Some
if self
is of variant Ident
, and None
otherwise.
Sourcepub const fn is_an_plus_b_notation(&self) -> bool
pub const fn is_an_plus_b_notation(&self) -> bool
Returns true
if self
is of variant AnPlusBNotation
.
Sourcepub fn as_an_plus_b_notation(&self) -> Option<&AnPlusBNotation>
pub fn as_an_plus_b_notation(&self) -> Option<&AnPlusBNotation>
Returns Some
if self
is a reference of variant AnPlusBNotation
, and None
otherwise.
Sourcepub fn as_mut_an_plus_b_notation(&mut self) -> Option<&mut AnPlusBNotation>
pub fn as_mut_an_plus_b_notation(&mut self) -> Option<&mut AnPlusBNotation>
Returns Some
if self
is a mutable reference of variant AnPlusBNotation
, and None
otherwise.
Sourcepub fn expect_an_plus_b_notation(self) -> AnPlusBNotationwhere
Self: Debug,
pub fn expect_an_plus_b_notation(self) -> AnPlusBNotationwhere
Self: Debug,
Unwraps the value, yielding the content of AnPlusBNotation
.
§Panics
Panics if the value is not AnPlusBNotation
, with a panic message including the content of self
.
Sourcepub fn an_plus_b_notation(self) -> Option<AnPlusBNotation>
pub fn an_plus_b_notation(self) -> Option<AnPlusBNotation>
Returns Some
if self
is of variant AnPlusBNotation
, and None
otherwise.
Trait Implementations§
Source§impl EqIgnoreSpan for AnPlusB
impl EqIgnoreSpan for AnPlusB
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<AnPlusB> for PseudoClassSelectorChildren
impl From<AnPlusB> for PseudoClassSelectorChildren
Source§impl From<AnPlusBNotation> for AnPlusB
impl From<AnPlusBNotation> for AnPlusB
Source§fn from(v: AnPlusBNotation) -> Self
fn from(v: AnPlusBNotation) -> Self
Converts to this type from the input type.
impl Eq for AnPlusB
impl StructuralPartialEq for AnPlusB
Auto Trait Implementations§
impl Freeze for AnPlusB
impl RefUnwindSafe for AnPlusB
impl Send for AnPlusB
impl Sync for AnPlusB
impl Unpin for AnPlusB
impl UnwindSafe for AnPlusB
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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