Struct evaltrees::eval::CallByName [−][src]
pub struct CallByName { /* fields omitted */ }
Call-by-name evaluation.
Methods
impl CallByName
[src]
impl CallByName
pub fn new(decls: Vec<Decl<()>>) -> CallByName
[src]
pub fn new(decls: Vec<Decl<()>>) -> CallByName
Creates a call-by-name interpreter from a list of declarations. The nameless declaration will be the expression.
Trait Implementations
impl Debug for CallByName
[src]
impl Debug for CallByName
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 CallByName
[src]
impl Display for CallByName
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Evaluator for CallByName
[src]
impl Evaluator for CallByName
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 CallByName
impl Send for CallByName
impl Sync for CallByName
impl Sync for CallByName