Skip to main content

SliceExt

Trait SliceExt 

Source
pub trait SliceExt<T> {
    // Required method
    fn to_vpp_vec(&self) -> Vec<T>
       where T: Clone;
}
Expand description

Extension trait for slices to convert to VPP vectors

Required Methods§

Source

fn to_vpp_vec(&self) -> Vec<T>
where T: Clone,

Converts the slice to a VPP vector by cloning each element

Implementations on Foreign Types§

Source§

impl<T> SliceExt<T> for [T]

Source§

fn to_vpp_vec(&self) -> Vec<T>
where T: Clone,

Implementors§