IntoStorage

Trait IntoStorage 

Source
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§

Required Methods§

Implementations on Foreign Types§

Source§

impl<'a, T> IntoStorage for &'a [T]

Source§

impl<'a, T> IntoStorage for &'a mut [T]

Source§

impl<S: IntoStorage, T: IntoStorage> IntoStorage for (S, T)

Source§

impl<T> IntoStorage for Vec<T>

Source§

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.

Source§

type StorageType = Vec<T>

Source§

impl<T> IntoStorage for Range<T>

Implementors§