Function panic_on_zero

Source
pub const fn panic_on_zero(n: usize)
Expand description

Ensures that the provided capacity is greater than zero.

§Panics

Panics if n == 0, since zero‑length strings are not supported.