Struct syn::ItemFn [−][src]
pub struct ItemFn {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub sig: Signature,
pub block: Box<Block>,
}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: Visibilitysig: Signatureblock: Box<Block>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemFn
impl UnwindSafe for ItemFn
Blanket Implementations
Mutably borrows from an owned value. Read more