pub enum ITreeNode<E, R> {
Ret(R),
Tau(Box<dyn FnOnce() -> ITreeNode<E, R>>),
Vis(E, Box<dyn Fn(usize) -> ITreeNode<E, R>>),
}Expand description
An interaction tree node modelling one step of a potentially-infinite computation.
Based on the ITree structure used in verified concurrency frameworks.
Variants§
Ret(R)
Pure return value.
Tau(Box<dyn FnOnce() -> ITreeNode<E, R>>)
Silent step (τ): delays computation by one tick.
Vis(E, Box<dyn Fn(usize) -> ITreeNode<E, R>>)
Visible event e followed by a continuation k.
Implementations§
Auto Trait Implementations§
impl<E, R> Freeze for ITreeNode<E, R>
impl<E, R> !RefUnwindSafe for ITreeNode<E, R>
impl<E, R> !Send for ITreeNode<E, R>
impl<E, R> !Sync for ITreeNode<E, R>
impl<E, R> Unpin for ITreeNode<E, R>
impl<E, R> UnsafeUnpin for ITreeNode<E, R>where
R: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, R> !UnwindSafe for ITreeNode<E, R>
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