Crate from_attr

Source
Expand description

Macros§

convert_parsed_from_meta_list
Implement the ConvertParsed<Type = syn::MetaList> trait for the type.

Structs§

AttrsValue
Data structure to hold instance implemented FromAttr trait and parsed attributes.
Map
Represents a map parsed from the meta.
PathValue
Represents the path-value pair parsed from the meta.

Enums§

FlagOrValue
Represents the 3 cases parsed from the meta.

Traits§

AttributeIdent
Helper trait for holding idents.
ConvertParsed
Helper trait to convert syn types implementing Parse like LitStr to rust types like String
FromAttr
Used for conversion from Attributes, MetaList, TokenStream to values.
ParseMeta
Used to enable parsing of each meta.

Derive Macros§

FromAttr
Generate an implementation of FromAttr trait.
FromIdent
Generate an implementation of ConvertParsed<Type = syn::Ident> trait.