pub enum ForgivingRelativeSelector {
RelativeSelector(RelativeSelector),
ListOfComponentValues(ListOfComponentValues),
}Variants§
RelativeSelector(RelativeSelector)
ListOfComponentValues(ListOfComponentValues)
Implementations§
Source§impl ForgivingRelativeSelector
impl ForgivingRelativeSelector
Sourcepub const fn is_relative_selector(&self) -> bool
pub const fn is_relative_selector(&self) -> bool
Returns true if self is of variant RelativeSelector.
Sourcepub fn as_relative_selector(&self) -> Option<&RelativeSelector>
pub fn as_relative_selector(&self) -> Option<&RelativeSelector>
Returns Some if self is a reference of variant RelativeSelector, and None otherwise.
Sourcepub fn as_mut_relative_selector(&mut self) -> Option<&mut RelativeSelector>
pub fn as_mut_relative_selector(&mut self) -> Option<&mut RelativeSelector>
Returns Some if self is a mutable reference of variant RelativeSelector, and None otherwise.
Sourcepub fn expect_relative_selector(self) -> RelativeSelectorwhere
Self: Debug,
pub fn expect_relative_selector(self) -> RelativeSelectorwhere
Self: Debug,
Unwraps the value, yielding the content of RelativeSelector.
§Panics
Panics if the value is not RelativeSelector, with a panic message including the content of self.
Sourcepub fn relative_selector(self) -> Option<RelativeSelector>
pub fn relative_selector(self) -> Option<RelativeSelector>
Returns Some if self is of variant RelativeSelector, and None otherwise.
Sourcepub const fn is_list_of_component_values(&self) -> bool
pub const 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 Clone for ForgivingRelativeSelector
impl Clone for ForgivingRelativeSelector
Source§fn clone(&self) -> ForgivingRelativeSelector
fn clone(&self) -> ForgivingRelativeSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ForgivingRelativeSelector
impl Debug for ForgivingRelativeSelector
Source§impl EqIgnoreSpan for ForgivingRelativeSelector
impl EqIgnoreSpan for ForgivingRelativeSelector
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<ListOfComponentValues> for ForgivingRelativeSelector
impl From<ListOfComponentValues> for ForgivingRelativeSelector
Source§fn from(v: ListOfComponentValues) -> Self
fn from(v: ListOfComponentValues) -> Self
Source§impl From<RelativeSelector> for ForgivingRelativeSelector
impl From<RelativeSelector> for ForgivingRelativeSelector
Source§fn from(v: RelativeSelector) -> Self
fn from(v: RelativeSelector) -> Self
Source§impl Hash for ForgivingRelativeSelector
impl Hash for ForgivingRelativeSelector
Source§impl Spanned for ForgivingRelativeSelector
impl Spanned for ForgivingRelativeSelector
impl Eq for ForgivingRelativeSelector
impl StructuralPartialEq for ForgivingRelativeSelector
Auto Trait Implementations§
impl Freeze for ForgivingRelativeSelector
impl RefUnwindSafe for ForgivingRelativeSelector
impl Send for ForgivingRelativeSelector
impl Sync for ForgivingRelativeSelector
impl Unpin for ForgivingRelativeSelector
impl UnwindSafe for ForgivingRelativeSelector
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