WithShape

Trait WithShape 

Source
pub trait WithShape<D, C> {
    // Required method
    fn with(device: D, array: C) -> Self;
}

Required Methods§

Source

fn with(device: D, array: C) -> Self

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§

Source§

impl<'a, T, D, C, const B: usize, const A: usize> WithShape<&'a D, C> for Matrix<'a, T, D, Dim2<B, A>>
where D: Device, Buffer<'a, T, D, Dim2<B, A>>: WithShape<&'a D, C>,

Source§

impl<'a, T, D, S> WithShape<&'a D, ()> for Buffer<'a, T, D, S>
where S: Shape, D: Alloc<'a, T, S>,

Source§

impl<'a, T, D, const B: usize, const A: usize> WithShape<&'a D, &[[T; A]; B]> for Buffer<'a, T, D, Dim2<B, A>>
where T: Number, D: Alloc<'a, T, Dim2<B, A>>,

Source§

impl<'a, T, D, const B: usize, const A: usize> WithShape<&'a D, [[T; A]; B]> for Buffer<'a, T, D, Dim2<B, A>>
where T: Number, D: Alloc<'a, T, Dim2<B, A>>,

Source§

impl<'a, T, D, const N: usize> WithShape<&'a D, &[T; N]> for Buffer<'a, T, D, Dim1<N>>
where T: Number, D: Alloc<'a, T, Dim1<N>>,

Source§

impl<'a, T, D, const N: usize> WithShape<&'a D, [T; N]> for Buffer<'a, T, D, Dim1<N>>
where T: Number, D: Alloc<'a, T, Dim1<N>>,