StructToVec

Trait StructToVec 

Source
pub trait StructToVec<Item, const N: usize>: Sized + StructToArray<Item, N>
where Item: Clone,
{ // Required methods fn to_vec(self) -> Vec<Item>; fn from_vec(v: &[Item]) -> Self; }

Required Methods§

Source

fn to_vec(self) -> Vec<Item>

Source

fn from_vec(v: &[Item]) -> 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<S, Item, const N: usize> StructToVec<Item, N> for S
where S: StructToArray<Item, N>, Item: Clone,