Skip to main content

read_checked

Function read_checked 

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

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