Skip to main content

IncludeDef

Trait IncludeDef 

Source
pub trait IncludeDef {
    type Form;
}
Expand description

Ties a definition type to its form token.

One include entry point then dispatches to the right mounting machinery at compile time. Implemented by the #[subscriber] macro; a hand-written definition adds it next to its def trait impl.

Required Associated Types§

Source

type Form

The form token: one of the markers in forms.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§