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<()> { ... }
.
Fields§
§attrs: Vec<Attribute>
§vis: Visibility
§sig: Signature
§block: Box<Block>