Struct syn::ForeignItemFn
source · pub struct ForeignItemFn {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub sig: Signature,
pub semi_token: Semi,
}Expand description
A foreign function in an extern block.
This type is available only if Syn is built with the "full" feature.
Fields§
§attrs: Vec<Attribute>§vis: Visibility§sig: Signature§semi_token: SemiTrait Implementations§
source§impl Clone for ForeignItemFn
impl Clone for ForeignItemFn
source§impl Debug for ForeignItemFn
impl Debug for ForeignItemFn
source§impl From<ForeignItemFn> for ForeignItem
impl From<ForeignItemFn> for ForeignItem
source§fn from(e: ForeignItemFn) -> ForeignItem
fn from(e: ForeignItemFn) -> ForeignItem
Converts to this type from the input type.