VecTypeTrait

Trait VecTypeTrait 

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

Source

type InnerType: Copy + Default + IndexMut<usize, Output = Self::Elem> + IntoIterator<Item = Self::Elem>

Source

type Elem: Copy + Default + Add<Output = Self::Elem>

Required Methods§

Source

fn new(data: Self::InnerType) -> Self

Source

fn data(&self) -> &Self::InnerType

Source

fn iter_mut(&mut self) -> IterMut<'_, Self::Elem>

Source

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.

Implementors§