Enum swc_css_ast::CombinatorValue
source · pub enum CombinatorValue {
Descendant,
NextSibling,
Child,
LaterSibling,
Column,
}
Variants
Descendant
NextSibling
+
Child
>
LaterSibling
~
Column
||
Implementations
sourceimpl CombinatorValue
impl CombinatorValue
sourcepub fn is_descendant(&self) -> bool
pub fn is_descendant(&self) -> bool
Returns true
if self
is of variant Descendant
.
sourcepub fn is_next_sibling(&self) -> bool
pub fn is_next_sibling(&self) -> bool
Returns true
if self
is of variant NextSibling
.
sourcepub fn is_later_sibling(&self) -> bool
pub fn is_later_sibling(&self) -> bool
Returns true
if self
is of variant LaterSibling
.
Trait Implementations
sourceimpl Clone for CombinatorValue
impl Clone for CombinatorValue
sourcefn clone(&self) -> CombinatorValue
fn clone(&self) -> CombinatorValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CombinatorValue
impl Debug for CombinatorValue
sourceimpl<'de> Deserialize<'de> for CombinatorValue
impl<'de> Deserialize<'de> for CombinatorValue
sourcefn 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
sourceimpl Display for CombinatorValue
impl Display for CombinatorValue
sourceimpl EqIgnoreSpan for CombinatorValue
impl EqIgnoreSpan for CombinatorValue
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl FromStr for CombinatorValue
impl FromStr for CombinatorValue
sourceimpl Hash for CombinatorValue
impl Hash for CombinatorValue
sourceimpl Ord for CombinatorValue
impl Ord for CombinatorValue
sourcefn cmp(&self, other: &CombinatorValue) -> Ordering
fn cmp(&self, other: &CombinatorValue) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<CombinatorValue> for CombinatorValue
impl PartialEq<CombinatorValue> for CombinatorValue
sourcefn eq(&self, other: &CombinatorValue) -> bool
fn eq(&self, other: &CombinatorValue) -> bool
sourceimpl PartialOrd<CombinatorValue> for CombinatorValue
impl PartialOrd<CombinatorValue> for CombinatorValue
sourcefn partial_cmp(&self, other: &CombinatorValue) -> Option<Ordering>
fn partial_cmp(&self, other: &CombinatorValue) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for CombinatorValue
impl Serialize for CombinatorValue
impl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more