Trait DefaultRetained

Source
pub trait DefaultRetained {
    // Required method
    fn default_retained() -> Retained<Self> ;
}
Expand description

Helper trait to implement Default on Retained.

Required Methods§

Source

fn default_retained() -> Retained<Self>

The default Retained for a type.

On most objects the implementation would be sending a message to the new selector.

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§