pub trait SliceTrait: Copy {
type Dim: DimTrait;
// Required methods
fn sliced_shape_stride(
&self,
shape: Self::Dim,
stride: Self::Dim,
) -> ShapeStride<Self::Dim>;
fn sliced_offset(&self, stride: Self::Dim) -> usize;
}
Required Associated Types§
Required Methods§
fn sliced_shape_stride( &self, shape: Self::Dim, stride: Self::Dim, ) -> ShapeStride<Self::Dim>
fn sliced_offset(&self, stride: Self::Dim) -> usize
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.