pub trait StructToVec<Item>: Sized + StructToArray<Item>where
Item: Clone,{
// Required methods
fn to_vec(self) -> Vec<Item>;
fn from_vec(v: &[Item]) -> Self;
}Expand description
Extension trait for converting between structs and Vec<Item>.
This trait is automatically implemented for any type that implements StructToArray<Item>
where Item: Clone.
Required Methods§
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.