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, }
This is supported on crate feature
full
only.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]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 ItemExternCrate
[src]
impl Debug for ItemExternCrate
[src]This is supported on crate feature
extra-traits
only.impl Eq for ItemExternCrate
[src]
impl Eq for ItemExternCrate
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for ItemExternCrate
[src]
impl Parse for ItemExternCrate
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemExternCrate> for ItemExternCrate
[src]
impl PartialEq<ItemExternCrate> for ItemExternCrate
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ItemExternCrate
[src]
impl ToTokens for ItemExternCrate
[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 ItemExternCrate
impl RefUnwindSafe for ItemExternCrate
impl !Send for ItemExternCrate
impl !Send for ItemExternCrate
impl !Sync for ItemExternCrate
impl !Sync for ItemExternCrate
impl Unpin for ItemExternCrate
impl Unpin for ItemExternCrate
impl UnwindSafe for ItemExternCrate
impl UnwindSafe for ItemExternCrate