Skip to main content

read_checked

Function read_checked 

Source
pub fn read_checked<C>(list: &[C], index: usize) -> C
where C: CubePrimitive,
Expand description

Returns the value at index in list if the index is in bounds, otherwise returns value.