1 2 3 4 5 6 7 8
use core::Expr; pub type BoxExpr = Box<Expr<(), ()>>; pub type ExprOpFn = fn(BoxExpr, BoxExpr) -> Expr<(), ()>; pub fn bx<T>(x: T) -> Box<T> { Box::new(x) }