pub enum Expr {
Call(Gc<Prim>, Vec<Gc<Prim>>),
If(Gc<Prim>, Gc<Expr>, Gc<Expr>),
Let(Option<Symbol>, Gc<Expr>, Gc<Expr>),
Prim(Gc<Prim>),
}Expand description
A complex expression, i.e. one that can fail to normalize.
Variants§
Call(Gc<Prim>, Vec<Gc<Prim>>)
A function call.
If(Gc<Prim>, Gc<Expr>, Gc<Expr>)
A conditional expression.
Let(Option<Symbol>, Gc<Expr>, Gc<Expr>)
A let binding.
Prim(Gc<Prim>)
A primitive expression.
Implementations§
Trait Implementations§
Source§impl Trace for Expr
impl Trace for Expr
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
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 !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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more