IntoZeroCopy

Trait IntoZeroCopy 

Source
pub trait IntoZeroCopy<T: Clone + 'static> {
    // Required method
    fn into_zero_copy(self) -> CoreResult<ZeroCopyData<T>>;
}
Expand description

Helper trait for converting types to zero-copy data

Required Methods§

Source

fn into_zero_copy(self) -> CoreResult<ZeroCopyData<T>>

Convert into zero-copy data

Implementations on Foreign Types§

Source§

impl<T: Clone + 'static> IntoZeroCopy<T> for &[T]

Source§

impl<T: Clone + 'static> IntoZeroCopy<T> for Vec<T>

Implementors§