pub trait FromInnerSlice<T> {
const _SIZE_CHECK: ();
const _ALIGN_CHECK: ();
// Required method
fn from_inner_slice(slice: Vec<T>) -> Vec<Self>
where Self: Sized;
}Expand description
Convert a Vec of Number type to a Vec of PcoVecValue.
§Safety
This trait uses unsafe pointer casting that relies on compile-time size/alignment checks. The const assertions ensure T and T::NumberType have identical layout.
Required Associated Constants§
const _SIZE_CHECK: ()
const _ALIGN_CHECK: ()
Required Methods§
fn from_inner_slice(slice: Vec<T>) -> Vec<Self>where
Self: Sized,
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.