pub trait IntoStorage {
type StorageType;
// Required method
fn into_storage(self) -> Self::StorageType;
}Expand description
Convert a collection into its underlying representation, effectively stripping any organizational info.
Required Associated Types§
type StorageType
Required Methods§
fn into_storage(self) -> Self::StorageType
Implementations on Foreign Types§
Source§impl<'a, T> IntoStorage for &'a [T]
impl<'a, T> IntoStorage for &'a [T]
type StorageType = &'a [T]
fn into_storage(self) -> Self::StorageType
Source§impl<'a, T> IntoStorage for &'a mut [T]
impl<'a, T> IntoStorage for &'a mut [T]
type StorageType = &'a mut [T]
fn into_storage(self) -> Self::StorageType
Source§impl<S: IntoStorage, T: IntoStorage> IntoStorage for (S, T)
impl<S: IntoStorage, T: IntoStorage> IntoStorage for (S, T)
type StorageType = (<S as IntoStorage>::StorageType, <T as IntoStorage>::StorageType)
fn into_storage(self) -> Self::StorageType
Source§impl<T> IntoStorage for Vec<T>
impl<T> IntoStorage for Vec<T>
Source§fn into_storage(self) -> Self::StorageType
fn into_storage(self) -> Self::StorageType
Since a Vec has no information about the structure of its underlying
data, this is effectively a no-op.