Function check_bounds
Source pub fn check_bounds(i: usize, len: usize)
Expand description
境界チェックを行う。
§Examples
use nekolib::utils::check_bounds;
let a = [0, 1, 2];
check_bounds(2, a.len());
ⓘuse nekolib::utils::check_bounds;
let a = [0, 1, 2];
check_bounds(3, a.len());