pub struct FunctionResult {
pub ty: Handle<Type>,
pub binding: Option<Binding>,
}Expand description
The return type and optional binding of a function.
Fields§
§ty: Handle<Type>The return type.
binding: Option<Binding>Optional binding for the return value.
Trait Implementations§
Source§impl Clone for FunctionResult
impl Clone for FunctionResult
Source§fn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionResult
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnsafeUnpin for FunctionResult
impl UnwindSafe for FunctionResult
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