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 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 moreimpl Copy for CombinatorValue
impl Eq for CombinatorValue
impl StructuralEq for CombinatorValue
impl StructuralPartialEq for CombinatorValue
Auto Trait Implementations§
impl RefUnwindSafe for CombinatorValue
impl Send for CombinatorValue
impl Sync for CombinatorValue
impl Unpin for CombinatorValue
impl UnwindSafe for CombinatorValue
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
Mutably borrows from an owned value. Read more