Trait Copy

Source
pub trait Copy: Sized {
    // Required methods
    fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
        src: &V,
        dst: &mut W,
    );
    fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>);
}

Required Methods§

Source

fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( src: &V, dst: &mut W, )

Copies src.len() elements of src into dst.

Source

fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>)

Copies the entire matrix dst into src.

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.

Implementations on Foreign Types§

Source§

impl Copy for f32

Source§

fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( src: &V, dst: &mut W, )

Source§

fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>)

Source§

impl Copy for f64

Source§

fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( src: &V, dst: &mut W, )

Source§

fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>)

Source§

impl Copy for Complex32

Source§

fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( src: &V, dst: &mut W, )

Source§

fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>)

Source§

impl Copy for Complex64

Source§

fn copy<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( src: &V, dst: &mut W, )

Source§

fn copy_mat(src: &dyn Matrix<Self>, dst: &mut dyn Matrix<Self>)

Implementors§