make

Attribute Macro make 

Source
#[make]
Expand description

Creates a portrait of a trait, allowing it to be used in fill.

§Parameters

Parameters are comma-delimited.

§name

Syntax: name = $name:ident

Sets the derived module name to $name. Users for the [#[fill]] part have to import this name.

§import

Syntax: import($($imports:UseTree)*)

Import the use trees in $imports in the scope of the impl block.

§auto_imports

Syntax: auto_imports

An experimental feature for detecting imports automatically. Requires the imports to be pub use (or pub(crate) use if the trait is also pub(crate)) in order to re-export from the derived module.