Trait AutoTypeKey

Source
pub trait AutoTypeKey<T>: TypeKey
where T: Component,
{ // 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", so this trait is not object safe.

Implementors§