Struct evaltrees::eval::CallByValue [−][src]
pub struct CallByValue { /* fields omitted */ }
Call-by-value evaluation.
Methods
impl CallByValue
[src]
impl CallByValue
pub fn new(decls: Vec<Decl<()>>) -> CallByValue
[src]
pub fn new(decls: Vec<Decl<()>>) -> CallByValue
Creates a call-by-value interpreter from a list of declarations. The nameless declaration will be the expression.
Trait Implementations
impl Debug for CallByValue
[src]
impl Debug for CallByValue
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 CallByValue
[src]
impl Display for CallByValue
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 CallByValue
[src]
impl Evaluator for CallByValue
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 CallByValue
impl Send for CallByValue
impl Sync for CallByValue
impl Sync for CallByValue