pub enum ReturnTarget {
NoResult,
Slot(ValType),
Declared(Type),
}Expand description
Where a return in a body coerces to. Exactly one applies to any body.
Variants§
NoResult
A constructor initializer or compiler-generated body with no result.
Slot(ValType)
A recorded Wasm result: a closure’s funcref result, or a class method’s vtable slot, which this body’s own annotation may lower either wider or narrower than.
Declared(Type)
A top-level function, whose declared return type is its signature.
Trait Implementations§
Source§impl Clone for ReturnTarget
impl Clone for ReturnTarget
Source§impl Debug for ReturnTarget
impl Debug for ReturnTarget
Auto Trait Implementations§
impl Freeze for ReturnTarget
impl RefUnwindSafe for ReturnTarget
impl Send for ReturnTarget
impl Sync for ReturnTarget
impl Unpin for ReturnTarget
impl UnsafeUnpin for ReturnTarget
impl UnwindSafe for ReturnTarget
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