ConstDefault

Trait ConstDefault 

Source
pub trait ConstDefault: Default + 'static {
    const DEFAULT: &'static Self;
}

Required Associated Constants§

Source

const DEFAULT: &'static Self

Constant version of default value

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§