pub fn read_checked<C: CubePrimitive>(list: &[C], index: usize) -> CExpand description
Returns the value at index in list if the index is in bounds, otherwise returns value.
pub fn read_checked<C: CubePrimitive>(list: &[C], index: usize) -> CReturns the value at index in list if the index is in bounds, otherwise returns value.