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 StructuralPartialEq for FnDecl
Auto Trait Implementations§
impl Freeze for FnDecl
impl RefUnwindSafe for FnDecl
impl !Send for FnDecl
impl !Sync for FnDecl
impl Unpin 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