Enum swc_css_ast::CalcOperatorType
source · pub enum CalcOperatorType {
Add,
Sub,
Mul,
Div,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for CalcOperatorType
impl Clone for CalcOperatorType
source§fn clone(&self) -> CalcOperatorType
fn clone(&self) -> CalcOperatorType
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 CalcOperatorType
impl Debug for CalcOperatorType
source§impl Display for CalcOperatorType
impl Display for CalcOperatorType
source§impl EqIgnoreSpan for CalcOperatorType
impl EqIgnoreSpan for CalcOperatorType
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl FromStr for CalcOperatorType
impl FromStr for CalcOperatorType
source§impl Hash for CalcOperatorType
impl Hash for CalcOperatorType
source§impl Ord for CalcOperatorType
impl Ord for CalcOperatorType
source§fn cmp(&self, other: &CalcOperatorType) -> Ordering
fn cmp(&self, other: &CalcOperatorType) -> 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 for CalcOperatorType
impl PartialEq for CalcOperatorType
source§fn eq(&self, other: &CalcOperatorType) -> bool
fn eq(&self, other: &CalcOperatorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CalcOperatorType
impl PartialOrd for CalcOperatorType
source§fn partial_cmp(&self, other: &CalcOperatorType) -> Option<Ordering>
fn partial_cmp(&self, other: &CalcOperatorType) -> 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 CalcOperatorType
impl Eq for CalcOperatorType
impl StructuralEq for CalcOperatorType
impl StructuralPartialEq for CalcOperatorType
Auto Trait Implementations§
impl RefUnwindSafe for CalcOperatorType
impl Send for CalcOperatorType
impl Sync for CalcOperatorType
impl Unpin for CalcOperatorType
impl UnwindSafe for CalcOperatorType
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