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§
Required Methods§
fn create_vector<T>(capacity: Option<usize>) -> Self::Vector<T>
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.
impl VectorFactory for StdVectorFactory
Available on crate feature
std only.