Struct syn::ItemForeignMod [−][src]
pub struct ItemForeignMod { pub attrs: Vec<Attribute>, pub abi: Abi, pub brace_token: Brace, pub items: Vec<ForeignItem>, }
This is supported on crate feature
full
only.A block of foreign items: extern "C" { ... }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
abi: Abi
brace_token: Brace
items: Vec<ForeignItem>
Trait Implementations
impl Clone for ItemForeignMod
[src]
impl Clone for ItemForeignMod
[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 ItemForeignMod
[src]
impl Debug for ItemForeignMod
[src]This is supported on crate feature
extra-traits
only.impl Eq for ItemForeignMod
[src]
impl Eq for ItemForeignMod
[src]This is supported on crate feature
extra-traits
only.impl From<ItemForeignMod> for Item
[src]
impl From<ItemForeignMod> for Item
[src]fn from(e: ItemForeignMod) -> Item
[src]
impl Hash for ItemForeignMod
[src]
impl Hash for ItemForeignMod
[src]This is supported on crate feature
extra-traits
only.impl Parse for ItemForeignMod
[src]
impl Parse for ItemForeignMod
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemForeignMod> for ItemForeignMod
[src]
impl PartialEq<ItemForeignMod> for ItemForeignMod
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ItemForeignMod
[src]
impl ToTokens for ItemForeignMod
[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 ItemForeignMod
impl RefUnwindSafe for ItemForeignMod
impl !Send for ItemForeignMod
impl !Send for ItemForeignMod
impl !Sync for ItemForeignMod
impl !Sync for ItemForeignMod
impl Unpin for ItemForeignMod
impl Unpin for ItemForeignMod
impl UnwindSafe for ItemForeignMod
impl UnwindSafe for ItemForeignMod