Trait VectorHost

Source
pub trait VectorHost:
    Vector
    + Index<IndexType, Output = Self::T>
    + IndexMut<IndexType, Output = Self::T> {
    // Required methods
    fn as_slice(&self) -> &[Self::T];
    fn as_mut_slice(&mut self) -> &mut [Self::T];
}

Required Methods§

Source

fn as_slice(&self) -> &[Self::T]

get the vector as a slice TODO: not compatible with gpu vectors? but used for diffsl api

Source

fn as_mut_slice(&mut self) -> &mut [Self::T]

get the vector as a mut slice TODO: not compatible with gpu vectors? but used for diffsl api

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§