pub trait MatrixSlice<S>: ToViewMatrix
where S: SliceTrait<Dim = Self::Dim>,
{ type Output<'a>: MatrixBase<Dim = Self::Dim> + ViewMatrix where Self: 'a; // Required method fn slice(&self, index: S) -> Self::Output<'_>; }

Required Associated Types§

source

type Output<'a>: MatrixBase<Dim = Self::Dim> + ViewMatrix where Self: 'a

Required Methods§

source

fn slice(&self, index: S) -> Self::Output<'_>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<M: ToViewMemory, D: DimTrait, S: SliceTrait<Dim = D>> MatrixSlice<S> for Matrix<M, D>

§

type Output<'a> = Matrix<ViewMem<'a, <M as Memory>::Item>, D> where Self: 'a