CloneWithStorage

Trait CloneWithStorage 

Source
pub trait CloneWithStorage<S> {
    type CloneType;

    // Required method
    fn clone_with_storage(&self, storage: S) -> Self::CloneType;
}
Expand description

Clone the structure of a set replacing its storage with a new one.

Required Associated Types§

Required Methods§

Source

fn clone_with_storage(&self, storage: S) -> Self::CloneType

Implementations on Foreign Types§

Source§

impl<'a, T: 'a> CloneWithStorage<&'a [T]> for &'a [T]

Source§

fn clone_with_storage(&self, storage: &'a [T]) -> Self::CloneType

This function simply ignores self and returns storage since self is already a storage type.

Source§

type CloneType = &'a [T]

Source§

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

Source§

fn clone_with_storage(&self, storage: &'a mut [T]) -> Self::CloneType

This function simply ignores self and returns storage since self is already a storage type.

Source§

type CloneType = &'a mut [T]

Source§

impl<'a, T: 'a> CloneWithStorage<Vec<T>> for &'a [T]

Source§

fn clone_with_storage(&self, storage: Vec<T>) -> Self::CloneType

This function simply ignores self and returns storage since self is already a storage type.

Source§

type CloneType = Vec<T>

Source§

impl<S, T, U> CloneWithStorage<U> for (S, T)

Source§

type CloneType = U

Source§

fn clone_with_storage(&self, storage: U) -> Self::CloneType

Source§

impl<T, U> CloneWithStorage<Vec<U>> for Vec<T>

Source§

fn clone_with_storage(&self, storage: Vec<U>) -> Self::CloneType

This function simply ignores self and returns storage since self is already a storage type.

Source§

type CloneType = Vec<U>

Implementors§