/// Convert a given typed pointer into a new vector (copying the dats).
Convert a given typed pointer into a new vector (copying the dats).
Convert a given typed pointer into a new vector ( copying the dats ) .
pub unsafe fn vec_from_raw_parts<T: Clone>(
    ptr: *const T, 
    len: usize) -> Vec<T> {
    slice::from_raw_parts(ptr, len)
        .to_vec()
}
pub unsafe fn vec_from_raw_parts < T : Clone > ( ptr : * const T , len : usize ) -> Vec < T > { slice :: from_raw_parts ( ptr , len ) . to_vec ( ) }
Convert a given typed pointer into a new vector (copying the dats).
Convert a given typed pointer into a new vector ( copying the dats ) .
ptr
*const T
len
usize