Struct syn::DataEnum [−][src]
pub struct DataEnum { pub enum_token: Enum, pub brace_token: Brace, pub variants: Punctuated<Variant, Comma>, }
An enum input to a proc_macro_derive
macro.
This type is available if Syn is built with the "derive"
feature.
Fields
enum_token: Enum
brace_token: Brace
variants: Punctuated<Variant, Comma>
Trait Implementations
impl Clone for DataEnum
[src]
impl Clone for DataEnum
fn clone(&self) -> DataEnum
[src]
fn clone(&self) -> DataEnum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<DataEnum> for Data
[src]
impl From<DataEnum> for Data