Struct evaltrees::eval::LazyEvaluation [−][src]
pub struct LazyEvaluation { /* fields omitted */ }
Lazy evaluation.
Methods
impl LazyEvaluation
[src]
impl LazyEvaluation
pub fn new(decls: Vec<Decl<()>>) -> LazyEvaluation
[src]
pub fn new(decls: Vec<Decl<()>>) -> LazyEvaluation
Creates a lazy-evalauation interpreter from a list of declarations. The nameless declaration will be the expression.
Trait Implementations
impl Debug for LazyEvaluation
[src]
impl Debug for LazyEvaluation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for LazyEvaluation
[src]
impl Display for LazyEvaluation
fn fmt(&self, fmt: &mut Formatter) -> FmtResult
[src]
fn fmt(&self, fmt: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl Evaluator for LazyEvaluation
[src]
impl Evaluator for LazyEvaluation
fn normal_form(&self) -> bool
[src]
fn normal_form(&self) -> bool
Determines whether the primary expression is currently in a normal form, i.e. one that cannot be further reduced. Read more
fn set_print_style(&mut self, print_style: PrintStyle)
[src]
fn set_print_style(&mut self, print_style: PrintStyle)
Sets the print style.
fn step(&mut self) -> Result<(), Error>
[src]
fn step(&mut self) -> Result<(), Error>
Performs a single reduction step.
Auto Trait Implementations
impl Send for LazyEvaluation
impl Send for LazyEvaluation
impl Sync for LazyEvaluation
impl Sync for LazyEvaluation