Struct syn::ItemFn [−][src]
pub struct ItemFn { pub attrs: Vec<Attribute>, pub vis: Visibility, pub sig: Signature, pub block: Box<Block>, }
This is supported on crate feature
full
only.Expand description
A free-standing function: fn process(n: usize) -> Result<()> { ... }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
sig: Signature
block: Box<Block>
Trait Implementations
This is supported on crate feature
clone-impls
only.This is supported on crate feature
extra-traits
only.This is supported on crate feature
extra-traits
only.This is supported on crate feature
parsing
only.This is supported on crate feature
extra-traits
only.This is supported on crate feature
printing
only.This is supported on crate feature
extra-traits
only.Auto Trait Implementations
impl RefUnwindSafe for ItemFn
impl UnwindSafe for ItemFn
Blanket Implementations
Mutably borrows from an owned value. Read more