pub struct Callable {
pub return_type: Type,
pub body: Block,
pub parameters: Option<Vec<Parameter>>,
}Expand description
Return type and body of a callable impl.
Fields§
§return_type: TypeReturn type of the callable.
body: BlockBody executed on call.
parameters: Option<Vec<Parameter>>Original parameter names when desugared from fn.
If present, the body uses these directly instead of it.field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Callable
impl RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl UnsafeUnpin for Callable
impl UnwindSafe for Callable
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