konst_kernel::slice

Function slice_up_to

Source
pub const fn slice_up_to<T>(slice: &[T], len: usize) -> &[T]