Trait bf::traits::PeepholeCompilable [−][src]
pub trait PeepholeCompilable { fn with_rle<F, R>(&self, k: F) -> R
where
F: FnOnce(&Program) -> R; fn peephole_compile(&self) -> Box<Program> { ... } }
Program forms that can be compiled to the peephole AST.
Required Methods
fn with_rle<F, R>(&self, k: F) -> R where
F: FnOnce(&Program) -> R,
F: FnOnce(&Program) -> R,
Compile the given program into RLE AST to prepare for peephole optimization.
Provided Methods
ⓘImportant traits for Box<R>
fn peephole_compile(&self) -> Box<Program>
Peephole optimize the given program.
Implementors
impl PeepholeCompilable for Program
impl<T: RleCompilable + ?Sized> PeepholeCompilable for T