Trait bf::traits::RleCompilable  [−][src]
pub trait RleCompilable {
    fn with_ast<F, R>(&self, k: F) -> R
    where
        F: FnOnce(&Program) -> R;
    fn rle_compile(&self) -> Box<Program> { ... }
}Program forms that can be compiled to the RLE AST.
Required Methods
fn with_ast<F, R>(&self, k: F) -> R where
    F: FnOnce(&Program) -> R, 
F: FnOnce(&Program) -> R,
Convert the given program to unoptimized AST to prepare for run-length encoding.
Provided Methods
ⓘImportant traits for Box<R>
fn rle_compile(&self) -> Box<Program>
Run-length encode the given program.
Implementors
impl RleCompilable for Program