Function re_space_view::clamped_or_nothing
source · pub fn clamped_or_nothing<T>(
values: &[T],
clamped_len: usize
) -> impl Iterator<Item = &T> + Clone
Expand description
Clamp the last value in values
in order to reach a length of clamped_len
.
Returns an empty iterator if values is empty.