pub enum Expr {
Var(u32),
Lit(i64, PrimType),
Cast(Arc<Expr>, PrimType),
BinOp(BinOp, Arc<Expr>, Arc<Expr>),
}Expand description
Arithmetic expressions in the policy language.
Variants§
Var(u32)
A free variable.
Lit(i64, PrimType)
A literal bitcasted to the expected type.
Cast(Arc<Expr>, PrimType)
Explicit casting.
BinOp(BinOp, Arc<Expr>, Arc<Expr>)
Arithmetic/bitwise binary ops.
Trait Implementations§
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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