Struct syn::ForeignItemFn [−][src]
pub struct ForeignItemFn { pub attrs: Vec<Attribute>, pub vis: Visibility, pub sig: Signature, pub semi_token: Semi, }
This is supported on crate feature
full
only.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: Semi
Trait Implementations
impl Clone for ForeignItemFn
[src]
impl Clone for ForeignItemFn
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ForeignItemFn
[src]
impl Debug for ForeignItemFn
[src]This is supported on crate feature
extra-traits
only.impl Eq for ForeignItemFn
[src]
impl Eq for ForeignItemFn
[src]This is supported on crate feature
extra-traits
only.impl From<ForeignItemFn> for ForeignItem
[src]
impl From<ForeignItemFn> for ForeignItem
[src]fn from(e: ForeignItemFn) -> ForeignItem
[src]
impl Hash for ForeignItemFn
[src]
impl Hash for ForeignItemFn
[src]This is supported on crate feature
extra-traits
only.impl Parse for ForeignItemFn
[src]
impl Parse for ForeignItemFn
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ForeignItemFn> for ForeignItemFn
[src]
impl PartialEq<ForeignItemFn> for ForeignItemFn
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ForeignItemFn
[src]
impl ToTokens for ForeignItemFn
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ForeignItemFn
impl RefUnwindSafe for ForeignItemFn
impl !Send for ForeignItemFn
impl !Send for ForeignItemFn
impl !Sync for ForeignItemFn
impl !Sync for ForeignItemFn
impl Unpin for ForeignItemFn
impl Unpin for ForeignItemFn
impl UnwindSafe for ForeignItemFn
impl UnwindSafe for ForeignItemFn