pub trait VecTypeTrait:
Default
+ Copy
+ Add<Output = Self>
+ VecTypeInternal {
type InnerType: Copy + Default + IndexMut<usize, Output = Self::Elem> + IntoIterator<Item = Self::Elem>;
type Elem: Copy + Default + Add<Output = Self::Elem>;
// Required methods
fn new(data: Self::InnerType) -> Self;
fn data(&self) -> &Self::InnerType;
fn iter_mut(&mut self) -> IterMut<'_, Self::Elem>;
fn iter(&self) -> Iter<'_, Self::Elem>;
}Required Associated Types§
type InnerType: Copy + Default + IndexMut<usize, Output = Self::Elem> + IntoIterator<Item = Self::Elem>
type Elem: Copy + Default + Add<Output = Self::Elem>
Required Methods§
fn new(data: Self::InnerType) -> Self
fn data(&self) -> &Self::InnerType
fn iter_mut(&mut self) -> IterMut<'_, Self::Elem>
fn iter(&self) -> Iter<'_, Self::Elem>
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.