pub trait EntityToFormer<Definition>where
Definition: FormerDefinition,{
type Former;
// Provided method
fn __f(_: &Definition) { ... }
}Expand description
Maps a type of entity to its corresponding former. This trait binds an entity type to a specific former, facilitating the use of custom formers in complex formation scenarios.
Required Associated Types§
Provided Methods§
Sourcefn __f(_: &Definition)
fn __f(_: &Definition)
A placeholder function to reference the definition without operational logic to calm compiler.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.