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.
Fields§
§attrs: Vec<Attribute>
§vis: Visibility
§sig: Signature
§semi_token: Semi
Trait Implementations§
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.