Struct lamcal::inspect::Collect [−][src]
pub struct Collect { /* fields omitted */ }
Collects clones of the terms representing the results of each step during reduction or evaluation of a term.
Methods
impl Collect
[src]
impl Collect
pub fn new() -> Self
[src]
pub fn new() -> Self
Constructs a new Collect
inspection.
pub fn unwrap(self) -> Vec<Term>
[src]
pub fn unwrap(self) -> Vec<Term>
Unwraps the underlying vector of collected terms.
pub fn terms(&self) -> &[Term]
[src]
pub fn terms(&self) -> &[Term]
Returns a reference to a slice of collected terms.
Trait Implementations
impl Debug for Collect
[src]
impl Debug for Collect
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 Clone for Collect
[src]
impl Clone for Collect
fn clone(&self) -> Collect
[src]
fn clone(&self) -> Collect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Collect
[src]
impl PartialEq for Collect
fn eq(&self, other: &Collect) -> bool
[src]
fn eq(&self, other: &Collect) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Collect) -> bool
[src]
fn ne(&self, other: &Collect) -> bool
This method tests for !=
.
impl Default for Collect
[src]
impl Default for Collect
impl IntoIterator for Collect
[src]
impl IntoIterator for Collect
type Item = Term
The type of the elements being iterated over.
type IntoIter = IntoIter<Term>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Inspect for Collect
[src]
impl Inspect for Collect