pub enum ForgivingComplexSelector {
ComplexSelector(ComplexSelector),
ListOfComponentValues(ListOfComponentValues),
}
Variants§
ComplexSelector(ComplexSelector)
ListOfComponentValues(ListOfComponentValues)
Implementations§
source§impl ForgivingComplexSelector
impl ForgivingComplexSelector
sourcepub fn is_complex_selector(&self) -> bool
pub fn is_complex_selector(&self) -> bool
Returns true
if self
is of variant ComplexSelector
.
sourcepub fn as_complex_selector(&self) -> Option<&ComplexSelector>
pub fn as_complex_selector(&self) -> Option<&ComplexSelector>
Returns Some
if self
is a reference of variant ComplexSelector
, and None
otherwise.
sourcepub fn as_mut_complex_selector(&mut self) -> Option<&mut ComplexSelector>
pub fn as_mut_complex_selector(&mut self) -> Option<&mut ComplexSelector>
Returns Some
if self
is a mutable reference of variant ComplexSelector
, and None
otherwise.
sourcepub fn expect_complex_selector(self) -> ComplexSelectorwhere
Self: Debug,
pub fn expect_complex_selector(self) -> ComplexSelectorwhere Self: Debug,
Unwraps the value, yielding the content of ComplexSelector
.
Panics
Panics if the value is not ComplexSelector
, with a panic message including the content of self
.
sourcepub fn complex_selector(self) -> Option<ComplexSelector>
pub fn complex_selector(self) -> Option<ComplexSelector>
Returns Some
if self
is of variant ComplexSelector
, and None
otherwise.
sourcepub fn is_list_of_component_values(&self) -> bool
pub fn is_list_of_component_values(&self) -> bool
Returns true
if self
is of variant ListOfComponentValues
.
sourcepub fn as_list_of_component_values(&self) -> Option<&ListOfComponentValues>
pub fn as_list_of_component_values(&self) -> Option<&ListOfComponentValues>
Returns Some
if self
is a reference of variant ListOfComponentValues
, and None
otherwise.
sourcepub fn as_mut_list_of_component_values(
&mut self
) -> Option<&mut ListOfComponentValues>
pub fn as_mut_list_of_component_values( &mut self ) -> Option<&mut ListOfComponentValues>
Returns Some
if self
is a mutable reference of variant ListOfComponentValues
, and None
otherwise.
sourcepub fn expect_list_of_component_values(self) -> ListOfComponentValueswhere
Self: Debug,
pub fn expect_list_of_component_values(self) -> ListOfComponentValueswhere Self: Debug,
Unwraps the value, yielding the content of ListOfComponentValues
.
Panics
Panics if the value is not ListOfComponentValues
, with a panic message including the content of self
.
sourcepub fn list_of_component_values(self) -> Option<ListOfComponentValues>
pub fn list_of_component_values(self) -> Option<ListOfComponentValues>
Returns Some
if self
is of variant ListOfComponentValues
, and None
otherwise.
Trait Implementations§
source§impl Archive for ForgivingComplexSelector
impl Archive for ForgivingComplexSelector
§type Archived = ArchivedForgivingComplexSelector
type Archived = ArchivedForgivingComplexSelector
§type Resolver = ForgivingComplexSelectorResolver
type Resolver = ForgivingComplexSelectorResolver
source§impl Clone for ForgivingComplexSelector
impl Clone for ForgivingComplexSelector
source§fn clone(&self) -> ForgivingComplexSelector
fn clone(&self) -> ForgivingComplexSelector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ForgivingComplexSelector
impl Debug for ForgivingComplexSelector
source§impl<'de> Deserialize<'de> for ForgivingComplexSelector
impl<'de> Deserialize<'de> for ForgivingComplexSelector
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<ForgivingComplexSelector, __D> for Archived<ForgivingComplexSelector>where
__D: SharedDeserializeRegistry + Fallible + ?Sized,
impl<__D> Deserialize<ForgivingComplexSelector, __D> for Archived<ForgivingComplexSelector>where __D: SharedDeserializeRegistry + Fallible + ?Sized,
source§fn deserialize(
&self,
deserializer: &mut __D
) -> Result<ForgivingComplexSelector, __D::Error>
fn deserialize( &self, deserializer: &mut __D ) -> Result<ForgivingComplexSelector, __D::Error>
source§impl EqIgnoreSpan for ForgivingComplexSelector
impl EqIgnoreSpan for ForgivingComplexSelector
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<ComplexSelector> for ForgivingComplexSelector
impl From<ComplexSelector> for ForgivingComplexSelector
source§fn from(v: ComplexSelector) -> Self
fn from(v: ComplexSelector) -> Self
source§impl From<ListOfComponentValues> for ForgivingComplexSelector
impl From<ListOfComponentValues> for ForgivingComplexSelector
source§fn from(v: ListOfComponentValues) -> Self
fn from(v: ListOfComponentValues) -> Self
source§impl Hash for ForgivingComplexSelector
impl Hash for ForgivingComplexSelector
source§impl PartialEq<ForgivingComplexSelector> for ForgivingComplexSelector
impl PartialEq<ForgivingComplexSelector> for ForgivingComplexSelector
source§fn eq(&self, other: &ForgivingComplexSelector) -> bool
fn eq(&self, other: &ForgivingComplexSelector) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<__S> Serialize<__S> for ForgivingComplexSelectorwhere
__S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl<__S> Serialize<__S> for ForgivingComplexSelectorwhere __S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
source§impl Serialize for ForgivingComplexSelector
impl Serialize for ForgivingComplexSelector
source§impl Spanned for ForgivingComplexSelector
impl Spanned for ForgivingComplexSelector
impl Eq for ForgivingComplexSelector
impl StructuralEq for ForgivingComplexSelector
impl StructuralPartialEq for ForgivingComplexSelector
Auto Trait Implementations§
impl RefUnwindSafe for ForgivingComplexSelector
impl Send for ForgivingComplexSelector
impl Sync for ForgivingComplexSelector
impl Unpin for ForgivingComplexSelector
impl UnwindSafe for ForgivingComplexSelector
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.