VectorFactory

Trait VectorFactory 

Source
pub trait VectorFactory {
    type Vector<T>: Vector<T>;

    // Required methods
    fn create_vector<T>(capacity: Option<usize>) -> Self::Vector<T>;
    fn clone_vector<T: Clone>(vector: &[T]) -> Self::Vector<T>;
}

Required Associated Types§

Source

type Vector<T>: Vector<T>

Required Methods§

Source

fn create_vector<T>(capacity: Option<usize>) -> Self::Vector<T>

Source

fn clone_vector<T: Clone>(vector: &[T]) -> Self::Vector<T>

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.

Implementors§

Source§

impl VectorFactory for StdVectorFactory

Available on crate feature std only.