#[non_exhaustive]pub enum ReplYield {
Stop {
command: CommandId,
args: Vec<Value>,
id: Option<String>,
},
Done {
value: Option<(Value, Ty)>,
declared: Vec<Declared>,
ended: bool,
},
}Expand description
The result of run.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stop
Stopped at a stop command (same as Yield::Stop; id is Some only for lines inside a called label).
Fields
Done
Running the input finished.
Trait Implementations§
impl StructuralPartialEq for ReplYield
Auto Trait Implementations§
impl Forget for ReplYield
impl Freeze for ReplYield
impl Move for ReplYield
impl RefUnwindSafe for ReplYield
impl Send for ReplYield
impl Sync for ReplYield
impl Unpin for ReplYield
impl UnsafeUnpin for ReplYield
impl UnwindSafe for ReplYield
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