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<'de> Deserialize<'de> for QualifiedRulePrelude
impl<'de> Deserialize<'de> for QualifiedRulePrelude
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 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<QualifiedRulePrelude> for QualifiedRulePrelude
impl PartialEq<QualifiedRulePrelude> for QualifiedRulePrelude
source§fn eq(&self, other: &QualifiedRulePrelude) -> bool
fn eq(&self, other: &QualifiedRulePrelude) -> bool
self
and other
values to be equal, and is used
by ==
.