CopyArray

Trait CopyArray 

Source
pub trait CopyArray<T, const N: usize, const NS: usize>
where T: Copy,
{ // Required method fn copy_from_array( &mut self, start_idx: usize, source: [T; NS], ) -> &mut Self; }

Required Methods§

Source

fn copy_from_array(&mut self, start_idx: usize, source: [T; NS]) -> &mut 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.

Implementations on Foreign Types§

Source§

impl<T, const N: usize, const NS: usize> CopyArray<T, N, NS> for [T; N]
where T: Copy,

Source§

fn copy_from_array(&mut self, start_idx: usize, source: [T; NS]) -> &mut Self

Implementors§