calculate_slice_memory_layout

Function calculate_slice_memory_layout 

Source
pub const fn calculate_slice_memory_layout<T>() -> VecOrStringLayout
Expand description

Calculate the memory layout of &[T].

I.e, of the reference to the data. This type is typically 16 bytes, consisting of two words, one being the length, the other being a pointer to the start of the data.