Trait synthez::ext::Data[][src]

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

  • If this [syn::Data] is not a [syn::Data::Struct].
  • If this [syn::Data::Struct] doesn’t consist of [syn::Fields::Named].

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

Errors

  • If this [syn::Data] is not a [syn::Data::Struct].
  • If this [syn::Data::Struct] doesn’t consist of [syn::Fields::Named].

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

Errors

  • If this [syn::Data] is not a [syn::Data::Struct].
  • If this [syn::Data::Struct] doesn’t consist of [syn::Fields::Unnamed].

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

Errors

  • If this [syn::Data] is not a [syn::Data::Struct].
  • If this [syn::Data::Struct] doesn’t consist of [syn::Fields::Unnamed].

Implementations on Foreign Types

Implementors