Skip to main content

DefaultValueStorage

Trait DefaultValueStorage 

Source
pub trait DefaultValueStorage<T>: ValueStorage<T> {
    // Required method
    fn default_storage() -> Self::Storage;
}
Expand description

Storage policies that can synthesize missing/default value-holder storage.

Required Methods§

Source

fn default_storage() -> Self::Storage

Construct a missing/default value-holder field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§