pub unsafe fn copy_from_ptr_unsafe(head: H, src: *mut T, len: usize) -> Self {
        let mut this = Self::with_capacity(head, len);
        let dest = this.body.as_mut_ptr();
        ptr::copy_nonoverlapping(src, dest, len);
        this.len = len;
        this
    }
/// Copies the contents of a slice into a new `HeaderVec`.
/// Do not use or drop the contents of the original slice after this.
Copies the contents of a slice into a new `HeaderVec`.
Do not use or drop the contents of the original slice after this.
Copies the contents of a slice into a new ` HeaderVec ` . Do not use or drop the contents of the original slice after this .
pub unsafe fn copy_from_ptr_unsafe(head: H, src: *mut T, len: usize) -> Self {
        let mut this = Self::with_capacity(head, len);
        let dest = this.body.as_mut_ptr();
        ptr::copy_nonoverlapping(src, dest, len);
        this.len = len;
        this
    }
pub unsafe fn copy_from_ptr_unsafe ( head : H , src : * mut T , len : usize ) -> Self { let mut this = Self :: with_capacity ( head , len ) ; let dest = this . body . as_mut_ptr ( ) ; ptr :: copy_nonoverlapping ( src , dest , len ) ; this . len = len ; this }
Copies the contents of a slice into a new `HeaderVec`.
Copies the contents of a slice into a new ` HeaderVec ` .
head
H
src
*mut T
len
usize