unsafe fn new_cap<T>(cap: usize) -> UsizeNoHighBit
🔬This is a nightly-only experimental API. (
raw_vec_internals
)Expand description
Cap(cap)
, except if T
is a ZST then Cap::ZERO
.
unsafe fn new_cap<T>(cap: usize) -> UsizeNoHighBit
raw_vec_internals
)Cap(cap)
, except if T
is a ZST then Cap::ZERO
.
isize::MAX
.