pub trait CowFormat: SparseFormat {
type Owned<T: Send + Sync>: SparseShape + Send + Sync;
// Required methods
fn as_storage<T>(owned: &Self::Owned<T>) -> Self::Storage<'_, T>
where T: Send + Sync;
fn to_owned_storage<T>(storage: &Self::Storage<'_, T>) -> Self::Owned<T>
where T: Clone + Send + Sync;
}Expand description
Maps a sparse format marker to its owned storage and Cow conversions.
Sealed transitively through SparseFormat.
Required Associated Types§
Required Methods§
Sourcefn as_storage<T>(owned: &Self::Owned<T>) -> Self::Storage<'_, T>
fn as_storage<T>(owned: &Self::Owned<T>) -> Self::Storage<'_, T>
Re-borrow owned storage as the format’s view storage (zero-copy).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".