pub enum PseudoElementSelectorChildren {
PreservedToken(TokenAndSpan),
Ident(Ident),
CompoundSelector(CompoundSelector),
CustomHighlightName(CustomHighlightName),
}
Variants§
PreservedToken(TokenAndSpan)
Ident(Ident)
CompoundSelector(CompoundSelector)
CustomHighlightName(CustomHighlightName)
Implementations§
source§impl PseudoElementSelectorChildren
impl PseudoElementSelectorChildren
sourcepub fn is_preserved_token(&self) -> bool
pub fn is_preserved_token(&self) -> bool
Returns true
if self
is of variant PreservedToken
.
sourcepub fn as_preserved_token(&self) -> Option<&TokenAndSpan>
pub fn as_preserved_token(&self) -> Option<&TokenAndSpan>
Returns Some
if self
is a reference of variant PreservedToken
, and None
otherwise.
sourcepub fn as_mut_preserved_token(&mut self) -> Option<&mut TokenAndSpan>
pub fn as_mut_preserved_token(&mut self) -> Option<&mut TokenAndSpan>
Returns Some
if self
is a mutable reference of variant PreservedToken
, and None
otherwise.
sourcepub fn expect_preserved_token(self) -> TokenAndSpanwhere
Self: Debug,
pub fn expect_preserved_token(self) -> TokenAndSpanwhere Self: Debug,
Unwraps the value, yielding the content of PreservedToken
.
Panics
Panics if the value is not PreservedToken
, with a panic message including the content of self
.
sourcepub fn preserved_token(self) -> Option<TokenAndSpan>
pub fn preserved_token(self) -> Option<TokenAndSpan>
Returns Some
if self
is of variant PreservedToken
, and None
otherwise.
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 fn is_compound_selector(&self) -> bool
pub 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 fn is_custom_highlight_name(&self) -> bool
pub fn is_custom_highlight_name(&self) -> bool
Returns true
if self
is of variant CustomHighlightName
.
sourcepub fn as_custom_highlight_name(&self) -> Option<&CustomHighlightName>
pub fn as_custom_highlight_name(&self) -> Option<&CustomHighlightName>
Returns Some
if self
is a reference of variant CustomHighlightName
, and None
otherwise.
sourcepub fn as_mut_custom_highlight_name(
&mut self
) -> Option<&mut CustomHighlightName>
pub fn as_mut_custom_highlight_name( &mut self ) -> Option<&mut CustomHighlightName>
Returns Some
if self
is a mutable reference of variant CustomHighlightName
, and None
otherwise.
sourcepub fn expect_custom_highlight_name(self) -> CustomHighlightNamewhere
Self: Debug,
pub fn expect_custom_highlight_name(self) -> CustomHighlightNamewhere Self: Debug,
Unwraps the value, yielding the content of CustomHighlightName
.
Panics
Panics if the value is not CustomHighlightName
, with a panic message including the content of self
.
sourcepub fn custom_highlight_name(self) -> Option<CustomHighlightName>
pub fn custom_highlight_name(self) -> Option<CustomHighlightName>
Returns Some
if self
is of variant CustomHighlightName
, and None
otherwise.
Trait Implementations§
source§impl Archive for PseudoElementSelectorChildren
impl Archive for PseudoElementSelectorChildren
§type Archived = ArchivedPseudoElementSelectorChildren
type Archived = ArchivedPseudoElementSelectorChildren
§type Resolver = PseudoElementSelectorChildrenResolver
type Resolver = PseudoElementSelectorChildrenResolver
source§impl Clone for PseudoElementSelectorChildren
impl Clone for PseudoElementSelectorChildren
source§fn clone(&self) -> PseudoElementSelectorChildren
fn clone(&self) -> PseudoElementSelectorChildren
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for PseudoElementSelectorChildren
impl<'de> Deserialize<'de> for PseudoElementSelectorChildren
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<PseudoElementSelectorChildren, __D> for Archived<PseudoElementSelectorChildren>where
__D: SharedDeserializeRegistry + Fallible + ?Sized,
impl<__D> Deserialize<PseudoElementSelectorChildren, __D> for Archived<PseudoElementSelectorChildren>where __D: SharedDeserializeRegistry + Fallible + ?Sized,
source§fn deserialize(
&self,
deserializer: &mut __D
) -> Result<PseudoElementSelectorChildren, __D::Error>
fn deserialize( &self, deserializer: &mut __D ) -> Result<PseudoElementSelectorChildren, __D::Error>
source§impl EqIgnoreSpan for PseudoElementSelectorChildren
impl EqIgnoreSpan for PseudoElementSelectorChildren
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<CompoundSelector> for PseudoElementSelectorChildren
impl From<CompoundSelector> for PseudoElementSelectorChildren
source§fn from(v: CompoundSelector) -> Self
fn from(v: CompoundSelector) -> Self
source§impl From<CustomHighlightName> for PseudoElementSelectorChildren
impl From<CustomHighlightName> for PseudoElementSelectorChildren
source§fn from(v: CustomHighlightName) -> Self
fn from(v: CustomHighlightName) -> Self
source§impl From<Ident> for PseudoElementSelectorChildren
impl From<Ident> for PseudoElementSelectorChildren
source§impl From<TokenAndSpan> for PseudoElementSelectorChildren
impl From<TokenAndSpan> for PseudoElementSelectorChildren
source§fn from(v: TokenAndSpan) -> Self
fn from(v: TokenAndSpan) -> Self
source§impl Hash for PseudoElementSelectorChildren
impl Hash for PseudoElementSelectorChildren
source§impl PartialEq<PseudoElementSelectorChildren> for PseudoElementSelectorChildren
impl PartialEq<PseudoElementSelectorChildren> for PseudoElementSelectorChildren
source§fn eq(&self, other: &PseudoElementSelectorChildren) -> bool
fn eq(&self, other: &PseudoElementSelectorChildren) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<__S> Serialize<__S> for PseudoElementSelectorChildrenwhere
__S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl<__S> Serialize<__S> for PseudoElementSelectorChildrenwhere __S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl Eq for PseudoElementSelectorChildren
impl StructuralEq for PseudoElementSelectorChildren
impl StructuralPartialEq for PseudoElementSelectorChildren
Auto Trait Implementations§
impl RefUnwindSafe for PseudoElementSelectorChildren
impl Send for PseudoElementSelectorChildren
impl Sync for PseudoElementSelectorChildren
impl Unpin for PseudoElementSelectorChildren
impl UnwindSafe for PseudoElementSelectorChildren
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.