pub enum LoweredExpr {
Expr(Expr),
Emitted,
}Expand description
A lowered expression ready for backend emission.
This is the output of a LoweringStrategy. It can be either a
rewritten Vyre Expr or a backend-specific opaque instruction
sequence (represented as a tagged enum for extensibility).
Variants§
Expr(Expr)
Rewritten as a Vyre IR expression (most strategies do this).
Emitted
The strategy handled emission directly - the lowering pipeline should not process this expression further.
Trait Implementations§
Source§impl Clone for LoweredExpr
impl Clone for LoweredExpr
Source§fn clone(&self) -> LoweredExpr
fn clone(&self) -> LoweredExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LoweredExpr
impl !UnwindSafe for LoweredExpr
impl Freeze for LoweredExpr
impl Send for LoweredExpr
impl Sync for LoweredExpr
impl Unpin for LoweredExpr
impl UnsafeUnpin for LoweredExpr
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