Trait synthez_core::DataExt[][src]

pub trait DataExt: Sealed {
    fn named_fields(self) -> Result<Punctuated<Field, Comma>>;
fn named_fields_ref(&self) -> Result<&Punctuated<Field, Comma>>;
fn unnamed_fields(self) -> Result<Punctuated<Field, Comma>>;
fn unnamed_fields_ref(&self) -> Result<&Punctuated<Field, Comma>>; }
Expand description

Extension of a syn::Data.

Required methods

Parses syn::Fields::Named from this consumed syn::Data::Struct and returns owning iterator over them.

Errors

Parses syn::Fields::Named from this borrowed syn::Data::Struct and returns referencing iterator over them.

Errors

Parses syn::Fields::Unnamed from this consumed syn::Data::Struct and returns owning iterator over them.

Errors

Parses syn::Fields::Unnamed from this borrowed syn::Data::Struct and returns referencing iterator over them.

Errors

Implementations on Foreign Types

Implementors