pub enum QualifiedRulePrelude {
SelectorList(SelectorList),
RelativeSelectorList(RelativeSelectorList),
ListOfComponentValues(ListOfComponentValues),
}Variants§
SelectorList(SelectorList)
RelativeSelectorList(RelativeSelectorList)
ListOfComponentValues(ListOfComponentValues)
Implementations§
Source§impl QualifiedRulePrelude
impl QualifiedRulePrelude
Sourcepub const fn is_selector_list(&self) -> bool
pub const fn is_selector_list(&self) -> bool
Returns true if self is of variant SelectorList.
Sourcepub fn as_selector_list(&self) -> Option<&SelectorList>
pub fn as_selector_list(&self) -> Option<&SelectorList>
Returns Some if self is a reference of variant SelectorList, and None otherwise.
Sourcepub fn as_mut_selector_list(&mut self) -> Option<&mut SelectorList>
pub fn as_mut_selector_list(&mut self) -> Option<&mut SelectorList>
Returns Some if self is a mutable reference of variant SelectorList, and None otherwise.
Sourcepub fn expect_selector_list(self) -> SelectorListwhere
Self: Debug,
pub fn expect_selector_list(self) -> SelectorListwhere
Self: Debug,
Unwraps the value, yielding the content of SelectorList.
§Panics
Panics if the value is not SelectorList, with a panic message including the content of self.
Sourcepub fn selector_list(self) -> Option<SelectorList>
pub fn selector_list(self) -> Option<SelectorList>
Returns Some if self is of variant SelectorList, and None otherwise.
Sourcepub const fn is_relative_selector_list(&self) -> bool
pub const fn is_relative_selector_list(&self) -> bool
Returns true if self is of variant RelativeSelectorList.
Sourcepub fn as_relative_selector_list(&self) -> Option<&RelativeSelectorList>
pub fn as_relative_selector_list(&self) -> Option<&RelativeSelectorList>
Returns Some if self is a reference of variant RelativeSelectorList, and None otherwise.
Sourcepub fn as_mut_relative_selector_list(
&mut self,
) -> Option<&mut RelativeSelectorList>
pub fn as_mut_relative_selector_list( &mut self, ) -> Option<&mut RelativeSelectorList>
Returns Some if self is a mutable reference of variant RelativeSelectorList, and None otherwise.
Sourcepub fn expect_relative_selector_list(self) -> RelativeSelectorListwhere
Self: Debug,
pub fn expect_relative_selector_list(self) -> RelativeSelectorListwhere
Self: Debug,
Unwraps the value, yielding the content of RelativeSelectorList.
§Panics
Panics if the value is not RelativeSelectorList, with a panic message including the content of self.
Sourcepub fn relative_selector_list(self) -> Option<RelativeSelectorList>
pub fn relative_selector_list(self) -> Option<RelativeSelectorList>
Returns Some if self is of variant RelativeSelectorList, 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 QualifiedRulePrelude
impl Clone for QualifiedRulePrelude
Source§fn clone(&self) -> QualifiedRulePrelude
fn clone(&self) -> QualifiedRulePrelude
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QualifiedRulePrelude
impl Debug for QualifiedRulePrelude
Source§impl EqIgnoreSpan for QualifiedRulePrelude
impl EqIgnoreSpan for QualifiedRulePrelude
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<ListOfComponentValues> for QualifiedRulePrelude
impl From<ListOfComponentValues> for QualifiedRulePrelude
Source§fn from(v: ListOfComponentValues) -> Self
fn from(v: ListOfComponentValues) -> Self
Source§impl From<RelativeSelectorList> for QualifiedRulePrelude
impl From<RelativeSelectorList> for QualifiedRulePrelude
Source§fn from(v: RelativeSelectorList) -> Self
fn from(v: RelativeSelectorList) -> Self
Source§impl From<SelectorList> for QualifiedRulePrelude
impl From<SelectorList> for QualifiedRulePrelude
Source§fn from(v: SelectorList) -> Self
fn from(v: SelectorList) -> Self
Source§impl Hash for QualifiedRulePrelude
impl Hash for QualifiedRulePrelude
Source§impl PartialEq for QualifiedRulePrelude
impl PartialEq for QualifiedRulePrelude
Source§impl Spanned for QualifiedRulePrelude
impl Spanned for QualifiedRulePrelude
Source§impl Take for QualifiedRulePrelude
impl Take for QualifiedRulePrelude
impl Eq for QualifiedRulePrelude
impl StructuralPartialEq for QualifiedRulePrelude
Auto Trait Implementations§
impl Freeze for QualifiedRulePrelude
impl RefUnwindSafe for QualifiedRulePrelude
impl Send for QualifiedRulePrelude
impl Sync for QualifiedRulePrelude
impl Unpin for QualifiedRulePrelude
impl UnwindSafe for QualifiedRulePrelude
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