Skip to main content

AutoTypeKey

Trait AutoTypeKey 

Source
pub trait AutoTypeKey<T: Component>: TypeKey {
    // Required method
    fn new() -> Self;
}
Expand description

A TypeKey which can construct itself for a given type T.

Required Methods§

Source

fn new() -> Self

Constructs the type key for component type T.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§