Trait StaticRefDefault

Source
pub trait StaticRefDefault: 'static {
    const STATIC_REF_DEFAULT: &'static Self;
}

Required Associated Constants§

Source

const STATIC_REF_DEFAULT: &'static Self

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.

Implementations on Foreign Types§

Source§

impl StaticRefDefault for char

Source§

const STATIC_REF_DEFAULT: &'static Self

Source§

impl<T: 'static> StaticRefDefault for Option<T>

Source§

const STATIC_REF_DEFAULT: &'static Self

Implementors§

Source§

impl<T: 'static> StaticRefDefault for State<T>

Source§

const STATIC_REF_DEFAULT: &'static Self