[−][src]Enum dyon::ast::BinOp
Binary operator.
Variants
Addition operator (+
).
Subtraction operator (-
).
Multiply operator (*
).
Dot product operator (*.
).
Cross product operator (x
).
Division operator (/
).
Remainder operator (%
).
Power operator (^
).
Lazy OR operator (||
).
Lazy AND operator (&&
).
Less.
Less or equal.
Greater.
Greater or equal.
Equal.
Not equal.
Implementations
impl BinOp
[src]
pub fn symbol(self) -> &'static str
[src]
Returns symbol of binary operator.
pub fn symbol_bool(self) -> &'static str
[src]
Returns symbol of binary operator in boolean variant.
pub fn precedence(self) -> u8
[src]
Returns the operator precedence level. Used to put parentheses in right places when printing out closures.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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, 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<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,