Module from

Module from 

Source
Expand description

Implementation of a From derive macro.

Structsยง

ConsiderLegacySyntax ๐Ÿ”’
attr::Parser considering legacy syntax for attr::Types and emitting legacy_error, if any occurs.
Expansion ๐Ÿ”’
Expansion of a macro for generating From implementation of a struct or enum.

Functionsยง

expand
Expands a From derive macro.
legacy_error ๐Ÿ”’
Constructs a syn::Error for legacy syntax: #[from(types(i32, "&str"))].

Type Aliasesยง

StructAttribute ๐Ÿ”’
Representation of a From derive macro struct container attribute.
VariantAttribute ๐Ÿ”’
Representation of a From derive macro enum variant attribute.