Trait NewMatrix

Source
pub trait NewMatrix<T> {
    // Required method
    fn new(src: T, nrows: i64, ncols: i64) -> Self;
}

Required Methods§

Source

fn new(src: T, nrows: i64, ncols: i64) -> 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 NewMatrix<&[Integer]> for IntMat

Source§

impl NewMatrix<&[Rational]> for RatMat

Source§

impl<'a, T> NewMatrix<&'a [T]> for IntMat
where &'a T: Into<Integer>,

Source§

impl<'a, T> NewMatrix<&'a [T]> for RatMat

Source§

impl<T, const CAP: usize> NewMatrix<[T; CAP]> for IntMat
where T: Into<Integer>,

Source§

impl<T, const CAP: usize> NewMatrix<[T; CAP]> for RatMat
where T: Into<Rational>,

Source§

impl<const CAP: usize> NewMatrix<[&Integer; CAP]> for IntMat

Source§

impl<const CAP: usize> NewMatrix<[&Rational; CAP]> for RatMat