pub struct FnDecl {
pub fn_token: Fn,
pub generics: Generics,
pub paren_token: Paren,
pub inputs: Punctuated<FnArg, Comma>,
pub variadic: Option<Dot3>,
pub output: ReturnType,
}
Expand description
Header of a function declaration, without including the body.
This type is available if Syn is built with the "full"
feature.
Fields
fn_token: Fn
generics: Generics
paren_token: Paren
inputs: Punctuated<FnArg, Comma>
variadic: Option<Dot3>
output: ReturnType
Trait Implementations
impl Eq for FnDecl
impl StructuralEq for FnDecl
impl StructuralPartialEq for FnDecl
Auto Trait Implementations
impl RefUnwindSafe for FnDecl
impl !Send for FnDecl
impl !Sync for FnDecl
impl Unpin for FnDecl
impl UnwindSafe for FnDecl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more