Struct syn::DataStruct[][src]

pub struct DataStruct {
    pub struct_token: Struct,
    pub fields: Fields,
    pub semi_token: Option<Semi>,

A struct input to a proc_macro_derive macro.

This type is available if Syn is built with the "derive" feature.


Trait Implementations

impl Debug for DataStruct

Formats the value using the given formatter. Read more

impl Eq for DataStruct

impl PartialEq for DataStruct

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for DataStruct

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for DataStruct

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<DataStruct> for Data

Performs the conversion.

Auto Trait Implementations

impl !Send for DataStruct

impl !Sync for DataStruct