Enum swc_css_ast::CombinatorValue
source · pub enum CombinatorValue {
Descendant,
NextSibling,
Child,
LaterSibling,
Column,
}
Variants§
Implementations§
source§impl CombinatorValue
impl CombinatorValue
sourcepub const fn is_descendant(&self) -> bool
pub const fn is_descendant(&self) -> bool
Returns true
if self
is of variant Descendant
.
sourcepub const fn is_next_sibling(&self) -> bool
pub const fn is_next_sibling(&self) -> bool
Returns true
if self
is of variant NextSibling
.
sourcepub const fn is_later_sibling(&self) -> bool
pub const fn is_later_sibling(&self) -> bool
Returns true
if self
is of variant LaterSibling
.
Trait Implementations§
source§impl Clone for CombinatorValue
impl Clone for CombinatorValue
source§fn clone(&self) -> CombinatorValue
fn clone(&self) -> CombinatorValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CombinatorValue
impl Debug for CombinatorValue
source§impl<'de> Deserialize<'de> for CombinatorValue
impl<'de> Deserialize<'de> for CombinatorValue
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CombinatorValue
impl Display for CombinatorValue
source§impl EqIgnoreSpan for CombinatorValue
impl EqIgnoreSpan for CombinatorValue
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl FromStr for CombinatorValue
impl FromStr for CombinatorValue
source§impl Hash for CombinatorValue
impl Hash for CombinatorValue
source§impl Ord for CombinatorValue
impl Ord for CombinatorValue
source§fn cmp(&self, other: &CombinatorValue) -> Ordering
fn cmp(&self, other: &CombinatorValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CombinatorValue> for CombinatorValue
impl PartialEq<CombinatorValue> for CombinatorValue
source§fn eq(&self, other: &CombinatorValue) -> bool
fn eq(&self, other: &CombinatorValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CombinatorValue> for CombinatorValue
impl PartialOrd<CombinatorValue> for CombinatorValue
source§fn partial_cmp(&self, other: &CombinatorValue) -> Option<Ordering>
fn partial_cmp(&self, other: &CombinatorValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more