pub struct Iteration { /* private fields */ }
Expand description
An iterative context for recursive evaluation.
An Iteration
tracks monotonic variables, and monitors their progress.
It can inform the user if they have ceased changing, at which point the
computation should be done.
Implementations§
Source§impl Iteration
impl Iteration
Sourcepub fn changed(&mut self) -> bool
pub fn changed(&mut self) -> bool
Reports whether any of the monitored variables have changed since the most recent call.
Sourcepub fn variable<Tuple: Ord + 'static>(&mut self, name: &str) -> Variable<Tuple>
pub fn variable<Tuple: Ord + 'static>(&mut self, name: &str) -> Variable<Tuple>
Creates a new named variable associated with the iterative context.
Sourcepub fn variable_indistinct<Tuple: Ord + 'static>(
&mut self,
name: &str,
) -> Variable<Tuple>
pub fn variable_indistinct<Tuple: Ord + 'static>( &mut self, name: &str, ) -> Variable<Tuple>
Creates a new named variable associated with the iterative context.
This variable will not be maintained distinctly, and may advertise tuples as recent multiple times (perhaps unboundedly many times).
Auto Trait Implementations§
impl Freeze for Iteration
impl !RefUnwindSafe for Iteration
impl !Send for Iteration
impl !Sync for Iteration
impl Unpin for Iteration
impl !UnwindSafe for Iteration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more