Trait ToArray

Source
pub trait ToArray<R> {
    // Required method
    fn to_array(&self) -> R;
}

Required Methods§

Source

fn to_array(&self) -> R

Implementations on Foreign Types§

Source§

impl<T, R> ToArray<ArrayBase<OwnedRepr<R>, Dim<[usize; 2]>>> for [T]
where T: AsRef<[R]>, R: Num + Default + Copy,

Source§

fn to_array(&self) -> Array2<R>

Source§

impl<T: Num + Clone> ToArray<ArrayBase<OwnedRepr<T>, Dim<[usize; 1]>>> for [T]

Source§

fn to_array(&self) -> Array1<T>

Implementors§