FromSingleton

Trait FromSingleton 

Source
pub trait FromSingleton {
    // Provided method
    fn name() -> Cow<'static, str> { ... }
}
Expand description

Assigns a type a name that can be used for Dantelion2 singleton reflection.

The default implementation trims the type name down to its base, but it can also be overriden.

Provided Methods§

Source

fn name() -> Cow<'static, str>

Returns the name to look up the singleton by.

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§