pub enum CompletionType {
Normal,
Return,
Throw,
Break,
Continue,
Yield,
}Expand description
Completion record type. Represents the result of evaluating a statement or expression.
Variants§
Normal
Normal completion - execution continues.
Return
Return completion - function returns.
Throw
Throw completion - exception thrown.
Break
Break completion - break from loop/switch.
Continue
Continue completion - continue loop iteration.
Yield
Yield completion - generator yields a value.
Trait Implementations§
Source§impl Clone for CompletionType
impl Clone for CompletionType
Source§fn clone(&self) -> CompletionType
fn clone(&self) -> CompletionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletionType
impl Debug for CompletionType
Source§impl PartialEq for CompletionType
impl PartialEq for CompletionType
impl StructuralPartialEq for CompletionType
Auto Trait Implementations§
impl Freeze for CompletionType
impl RefUnwindSafe for CompletionType
impl Send for CompletionType
impl Sync for CompletionType
impl Unpin for CompletionType
impl UnwindSafe for CompletionType
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