Function format_struct::safe_count_to_size
source ยท pub const fn safe_count_to_size<T: Sized>(
count: usize
) -> Result<usize, SliceSizeOverflowError>Expand description
Multiplies a size of a type with a count and returns an error in case the resulting value
overflows isize.