pub trait Owner: Sized + 'static {
type Storage: Storage;
// Required methods
fn into_storage(self) -> Self::Storage;
fn from_storage(storage: Self::Storage) -> Self;
}Expand description
Required Associated Types§
Required Methods§
Sourcefn into_storage(self) -> Self::Storage
fn into_storage(self) -> Self::Storage
Consumes the Owner into the associated Storage type.
Sourcefn from_storage(storage: Self::Storage) -> Self
fn from_storage(storage: Self::Storage) -> Self
Consumes the associated Storage into the Owner type.
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.