Enum lovm2::prelude::Expr [−][src]
Expressions and operations that produce Values
Variants
Access(Access)
Call(Call)
Conv(Conv)
DynamicValue(Initialize)
Iter(Iter)
Slice(Slice)
Variable(Variable)
Implementations
impl Expr
[src]
pub fn from_opn(op: Operator2, args: Vec<Expr, Global>) -> Expr
[src]
pub fn from_op(op: &Operator2, left: Expr, right: Expr) -> Expr
[src]
impl Expr
[src]
pub fn boxed(self) -> Expr
[src]
pub fn is_const(&self) -> bool
[src]
pub fn eval(&self, ctx: &Context) -> Result<Value, Lovm2Error>
[src]
pub fn dict() -> Expr
[src]
pub fn list() -> Expr
[src]
pub fn pow<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
impl Expr
[src]
pub fn add<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn sub<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn mul<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn div<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn rem<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn shl<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn shr<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn and<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn or<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn xor<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn eq<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn ne<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn ge<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn gt<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn le<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn lt<T, U>(left: T, right: U) -> Expr where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
pub fn not<T>(expr: T) -> Expr where
T: Into<Expr>,
[src]
T: Into<Expr>,
Trait Implementations
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl<'_> From<&'_ Variable> for Expr
[src]
impl From<Access> for Expr
[src]
impl From<Call> for Expr
[src]
impl From<Conv> for Expr
[src]
impl From<Expr> for Access
[src]
impl From<Initialize> for Expr
[src]
pub fn from(init: Initialize) -> Expr
[src]
impl From<Iter> for Expr
[src]
impl From<Slice> for Expr
[src]
impl<T> From<T> for Expr where
T: Into<Value>,
[src]
T: Into<Value>,
impl From<Variable> for Expr
[src]
impl HirLowering for Expr
[src]
pub fn lower<'hir, 'lir>(&'hir self, runtime: &mut HirLoweringRuntime<'lir>) where
'hir: 'lir,
[src]
'hir: 'lir,
Auto Trait Implementations
impl !RefUnwindSafe for Expr
[src]
impl !Send for Expr
[src]
impl !Sync for Expr
[src]
impl Unpin for Expr
[src]
impl !UnwindSafe for Expr
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,