[−][src]Enum boa::syntax::ast::op::NumOp
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value.
More information:
Variants
The addition operator produces the sum of numeric operands or string concatenation.
Syntax: x + y
More information:
The subtraction operator subtracts the two operands, producing their difference.
Syntax: x - y
More information:
The division operator produces the quotient of its operands where the left operand is the dividend and the right operand is the divisor.
Syntax: x / y
More information:
The multiplication operator produces the product of the operands.
Syntax: x * y
More information:
The exponentiation operator returns the result of raising the first operand to the power of the second operand.
Syntax: x ** y
The exponentiation operator is right-associative. a ** b ** c is equal to a ** (b ** c).
More information:
The remainder operator returns the remainder left over when one operand is divided by a second operand.
Syntax: x % y
The remainder operator always takes the sign of the dividend.
More information:
Trait Implementations
impl Clone for NumOp
[src]
impl Copy for NumOp
[src]
impl Debug for NumOp
[src]
impl Display for NumOp
[src]
impl Finalize for NumOp
[src]
impl From<NumOp> for BinOp
[src]
impl PartialEq<NumOp> for NumOp
[src]
impl StructuralPartialEq for NumOp
[src]
impl Trace for NumOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for NumOp
impl Send for NumOp
impl Sync for NumOp
impl Unpin for NumOp
impl UnwindSafe for NumOp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,