pub enum ReturnTy {
Constant(PropertyType),
Dynamic(DynamicReturnFn),
}Expand description
How a function’s return type is computed.
Variants§
Constant(PropertyType)
Independent of argument types.
Dynamic(DynamicReturnFn)
Derived from argument types. The closure receives the caller’s
argument types (possibly Any where unknown) and returns the
computed return type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReturnTy
impl !RefUnwindSafe for ReturnTy
impl Send for ReturnTy
impl Sync for ReturnTy
impl Unpin for ReturnTy
impl UnsafeUnpin for ReturnTy
impl !UnwindSafe for ReturnTy
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