Struct devise::syn::ItemFn [−][src]
pub struct ItemFn {
pub attrs: Vec<Attribute, Global>,
pub vis: Visibility,
pub constness: Option<Const>,
pub asyncness: Option<Async>,
pub unsafety: Option<Unsafe>,
pub abi: Option<Abi>,
pub ident: Ident,
pub decl: Box<FnDecl, Global>,
pub block: Box<Block, Global>,
}Expand description
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, Global>vis: Visibilityconstness: Option<Const>asyncness: Option<Async>unsafety: Option<Unsafe>abi: Option<Abi>ident: Identdecl: Box<FnDecl, Global>block: Box<Block, Global>Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ItemFn
impl UnwindSafe for ItemFn
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more