Skip to main content

ArrayLike

Trait ArrayLike 

Source
pub trait ArrayLike<A = f64, D = Dim<[usize; 2]>>
where D: Dimension,
{ type Output; // Required method fn array_like<Sh>(&self, shape: Sh, elem: A) -> Self::Output where Sh: ShapeBuilder<Dim = D>; }

Required Associated Types§

Required Methods§

Source

fn array_like<Sh>(&self, shape: Sh, elem: A) -> Self::Output
where Sh: ShapeBuilder<Dim = D>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A, S, D> ArrayLike<A, D> for ArrayBase<S, D, A>
where A: Clone, D: Dimension, S: DataOwned<Elem = A>,

Source§

type Output = ArrayBase<S, D, A>

Source§

fn array_like<Sh>( &self, shape: Sh, elem: A, ) -> <ArrayBase<S, D, A> as ArrayLike<A, D>>::Output
where Sh: ShapeBuilder<Dim = D>,

Implementors§