pub struct FnDecl {
pub name: Ident,
pub is_async: bool,
pub generics: Vec<GenericParam>,
pub receiver: Option<Receiver>,
pub params: Vec<Param>,
pub return_type: Option<Type>,
pub body: Block,
pub span: Span,
}Fields§
§name: Ident§is_async: bool§generics: Vec<GenericParam>§receiver: Option<Receiver>self / var self, present on methods only.
params: Vec<Param>§return_type: Option<Type>§body: Block§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for FnDecl
impl RefUnwindSafe for FnDecl
impl Send for FnDecl
impl Sync for FnDecl
impl Unpin for FnDecl
impl UnsafeUnpin for FnDecl
impl UnwindSafe for FnDecl
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