pub struct BetaReductionPass {
pub reductions: u32,
}Expand description
Beta reduction pass – reduce lambda applications.
Fields§
§reductions: u32Implementations§
Source§impl BetaReductionPass
impl BetaReductionPass
pub fn new() -> Self
pub fn run(&mut self, decls: &mut [LcnfFunDecl])
Trait Implementations§
Source§impl Debug for BetaReductionPass
impl Debug for BetaReductionPass
Source§impl Default for BetaReductionPass
impl Default for BetaReductionPass
Source§impl OptPass for BetaReductionPass
impl OptPass for BetaReductionPass
Source§fn run_pass(&mut self, decls: &mut [LcnfFunDecl]) -> usize
fn run_pass(&mut self, decls: &mut [LcnfFunDecl]) -> usize
Run the pass on a set of declarations, returning the number of changes made.
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether this pass is enabled.
Source§fn dependencies(&self) -> Vec<&str>
fn dependencies(&self) -> Vec<&str>
Dependencies: names of passes that must run before this one.
Auto Trait Implementations§
impl Freeze for BetaReductionPass
impl RefUnwindSafe for BetaReductionPass
impl Send for BetaReductionPass
impl Sync for BetaReductionPass
impl Unpin for BetaReductionPass
impl UnsafeUnpin for BetaReductionPass
impl UnwindSafe for BetaReductionPass
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