63f41a6
1
2
3
4
5
6
7
pub fn dims_match(width: usize, height: usize, len: usize) -> bool { match width.checked_mul(height) { Some(p) => p == len, None => false, } }