Attribute Macro crate_interface::def_interface

source ·
#[def_interface]
Expand description

Define an interface.

This attribute should be added above the definition of a trait. All traits that use the attribute cannot have the same name.

It is not necessary to define it in the same crate as the implementation, but it is required that these crates are linked together.

See the crate-level documentation for more details.