leptos_struct_table

Function get_vec_range_clamped

Source
pub fn get_vec_range_clamped<T: Clone>(
    vec: &[T],
    range: Range<usize>,
) -> (Vec<T>, Range<usize>)
Expand description

Return vec[range.start..range.end] where range is clamped to the length of vec.