Function const_panic::utils::flatten_panicvals [−][src]
pub const fn flatten_panicvals<'a, const LEN: usize>(
input: &[&[PanicVal<'a>]]
) -> [PanicVal<'a>; LEN]
This is supported on crate feature
non_basic
only.Expand description
Flattens a &[&[PanicVal<'a>]]
into a [PanicVal<'a>; LEN]
.
If LEN
is greater than the amount of PanicVal
s in the slices,
this fills the remaining array with PanicVal::EMPTY
.
Panics
Panics if the amount of PanicVal
s in the slices is greater than LEN
.