Skip to main content

seq_capacity_for

Function seq_capacity_for 

Source
pub const fn seq_capacity_for<T: SeqElement>(region_len: usize) -> usize
Expand description

Live capacity (max element count) of a Seq<T> tail region of region_len bytes: (region_len - 4) / STRIDE. Zero if the region cannot even hold the count prefix.