Struct syn::ItemExternCrate [−][src]
pub struct ItemExternCrate { pub attrs: Vec<Attribute>, pub vis: Visibility, pub extern_token: Extern, pub crate_token: Crate, pub ident: Ident, pub rename: Option<(As, Ident)>, pub semi_token: Semi, }
An extern crate
item: extern crate serde
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
extern_token: Extern
crate_token: Crate
ident: Ident
rename: Option<(As, Ident)>
semi_token: Semi
Trait Implementations
impl Clone for ItemExternCrate
[src]
impl Clone for ItemExternCrate
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ItemExternCrate> for Item
[src]
impl From<ItemExternCrate> for Item
[src]fn from(e: ItemExternCrate) -> Item
[src]
impl Hash for ItemExternCrate
[src]
impl Hash for ItemExternCrate
[src]impl Parse for ItemExternCrate
[src]
impl Parse for ItemExternCrate
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemExternCrate> for ItemExternCrate
[src]
impl PartialEq<ItemExternCrate> for ItemExternCrate
[src]impl ToTokens for ItemExternCrate
[src]
impl ToTokens for ItemExternCrate
[src]