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