pub struct ReturnError {
pub value: Object,
}
Expand description
This error is thrown when a return statement is executed. Since errors are propagated up the execution stack, the interpreter can catch it and return the value of the return statement.
Fields§
§value: Object
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReturnError
impl !RefUnwindSafe for ReturnError
impl !Send for ReturnError
impl !Sync for ReturnError
impl Unpin for ReturnError
impl !UnwindSafe for ReturnError
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