viai957's picture
Add files using upload-large-folder tool
63f41a6 verified
Raw History Blame Contribute Delete
167 Bytes
pub fn dims_match(width: usize, height: usize, len: usize) -> bool {
match width.checked_mul(height) {
Some(p) => p == len,
None => false,
}
}