[−][src]Struct libslide::BinaryExpr
A binary expression.
Fields
op: BinaryOperatorThe binary operator.
lhs: EThe left hand side of the binary operator.
rhs: EThe right hand side of the binary operator.
Implementations
impl<E> BinaryExpr<E> where
E: RcExpression, [src]
E: RcExpression,
pub fn sub<T, U>(lhs: T, rhs: U) -> Self where
T: Into<E>,
U: Into<E>, [src]
T: Into<E>,
U: Into<E>,
Creates a binary expression with the given operator.
pub fn mult<T, U>(lhs: T, rhs: U) -> Self where
T: Into<E>,
U: Into<E>, [src]
T: Into<E>,
U: Into<E>,
Creates a binary expression with the given operator.
pub fn div<T, U>(lhs: T, rhs: U) -> Self where
T: Into<E>,
U: Into<E>, [src]
T: Into<E>,
U: Into<E>,
Creates a binary expression with the given operator.
pub fn exp<T, U>(lhs: T, rhs: U) -> Self where
T: Into<E>,
U: Into<E>, [src]
T: Into<E>,
U: Into<E>,
Creates a binary expression with the given operator.
Trait Implementations
impl<E: Clone + RcExpression> Clone for BinaryExpr<E>[src]
fn clone(&self) -> BinaryExpr<E>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<E: Debug + RcExpression> Debug for BinaryExpr<E>[src]
impl Display for BinaryExpr<RcExpr>[src]
impl Display for BinaryExpr<RcExprPat>[src]
impl Emit for BinaryExpr<RcExpr>[src]
fn emit_pretty(&self, config: EmitConfig) -> String[src]
fn emit_s_expression(&self, config: EmitConfig) -> String[src]
fn emit_latex(&self, config: EmitConfig) -> String[src]
fn emit(&self, form: EmitFormat, config: EmitConfig) -> String[src]
fn emit_debug(&self, _config: EmitConfig) -> String[src]
fn emit_wrapped_latex(&self, config: EmitConfig) -> String[src]
impl Emit for BinaryExpr<RcExprPat>[src]
fn emit_pretty(&self, config: EmitConfig) -> String[src]
fn emit_s_expression(&self, config: EmitConfig) -> String[src]
fn emit_latex(&self, config: EmitConfig) -> String[src]
fn emit(&self, form: EmitFormat, config: EmitConfig) -> String[src]
fn emit_debug(&self, _config: EmitConfig) -> String[src]
fn emit_wrapped_latex(&self, config: EmitConfig) -> String[src]
impl<E: Eq + RcExpression> Eq for BinaryExpr<E>[src]
impl<E: Hash + RcExpression> Hash for BinaryExpr<E>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<E> Ord for BinaryExpr<E> where
E: RcExpression, [src]
E: RcExpression,
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<E: PartialEq + RcExpression> PartialEq<BinaryExpr<E>> for BinaryExpr<E>[src]
fn eq(&self, other: &BinaryExpr<E>) -> bool[src]
fn ne(&self, other: &BinaryExpr<E>) -> bool[src]
impl<E> PartialOrd<BinaryExpr<E>> for BinaryExpr<E> where
E: RcExpression, [src]
E: RcExpression,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<E: RcExpression> StructuralEq for BinaryExpr<E>[src]
impl<E: RcExpression> StructuralPartialEq for BinaryExpr<E>[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for BinaryExpr<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for BinaryExpr<E> where
E: Send,
E: Send,
impl<E> Sync for BinaryExpr<E> where
E: Sync,
E: Sync,
impl<E> Unpin for BinaryExpr<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for BinaryExpr<E> where
E: UnwindSafe,
E: UnwindSafe,
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>,