Struct syn::ItemFn [−][src]
A free-standing function: fn process(n: usize) -> Result<()> { ... }
.
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
constness: Option<Const>
unsafety: Option<Unsafe>
abi: Option<Abi>
ident: Ident
decl: Box<FnDecl>
block: Box<Block>
Trait Implementations
impl Synom for ItemFn
[src]
[+]
impl Synom for ItemFn
impl ToTokens for ItemFn
[src]
[+]
impl ToTokens for ItemFn
impl Clone for ItemFn
[src]
[+]
impl Clone for ItemFn
impl From<ItemFn> for Item
[src]
[+]
impl From<ItemFn> for Item