pub enum Statement<S, O, E> {
Bind {
name: Located<String>,
expression: Expression<S, O, E>,
},
Evaluate {
expression: Expression<S, O, E>,
implicit_output: Option<E>,
},
}Expand description
Evaluate starts from the program’s retained input. None discards the result; Some requests implicit output unless the expression ends in a written emit.
Variants§
Trait Implementations§
impl<S: Eq, O: Eq, E: Eq> Eq for Statement<S, O, E>
impl<S: PartialEq, O: PartialEq, E: PartialEq> StructuralPartialEq for Statement<S, O, E>
Auto Trait Implementations§
impl<S, O, E> Freeze for Statement<S, O, E>
impl<S, O, E> RefUnwindSafe for Statement<S, O, E>
impl<S, O, E> Send for Statement<S, O, E>
impl<S, O, E> Sync for Statement<S, O, E>
impl<S, O, E> Unpin for Statement<S, O, E>
impl<S, O, E> UnsafeUnpin for Statement<S, O, E>
impl<S, O, E> UnwindSafe for Statement<S, O, E>
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