pub fn layout_for_len(len: usize) -> Layout {
        let head_layout = Layout::new::<H>();
        let buf_layout = Layout::array::<T>(len).unwrap();
        head_layout.extend(buf_layout).unwrap().0.pad_to_align()
    }
/// Returns the memory layout for an instance with the given length
Returns the memory layout for an instance with the given length
Returns the memory layout for an instance with the given length
pub fn layout_for_len(len: usize) -> Layout {
        let head_layout = Layout::new::<H>();
        let buf_layout = Layout::array::<T>(len).unwrap();
        head_layout.extend(buf_layout).unwrap().0.pad_to_align()
    }
pub fn layout_for_len ( len : usize ) -> Layout { let head_layout = Layout :: new :: < H > ( ) ; let buf_layout = Layout :: array :: < T > ( len ) . unwrap ( ) ; head_layout . extend ( buf_layout ) . unwrap ( ) . 0 . pad_to_align ( ) }
Returns the memory layout for an instance with the given length
Returns the memory layout for an instance with the given length
len
usize