Struct syn::ItemStruct [−][src]
pub struct ItemStruct { pub attrs: Vec<Attribute>, pub vis: Visibility, pub struct_token: Struct, pub ident: Ident, pub generics: Generics, pub fields: Fields, pub semi_token: Option<Semi>, }
A struct definition: struct Foo<A> { x: A }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
struct_token: Struct
ident: Ident
generics: Generics
fields: Fields
semi_token: Option<Semi>
Trait Implementations
impl Clone for ItemStruct
[src]
impl Clone for ItemStruct
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ItemStruct> for Item
[src]
impl From<ItemStruct> for Item
[src]fn from(e: ItemStruct) -> Item
[src]
impl From<ItemStruct> for DeriveInput
[src]
impl From<ItemStruct> for DeriveInput
[src]fn from(input: ItemStruct) -> DeriveInput
[src]
impl Hash for ItemStruct
[src]
impl Hash for ItemStruct
[src]impl Parse for ItemStruct
[src]
impl Parse for ItemStruct
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemStruct> for ItemStruct
[src]
impl PartialEq<ItemStruct> for ItemStruct
[src]impl ToTokens for ItemStruct
[src]
impl ToTokens for ItemStruct
[src]