Searched refs:fits_within (Results 1 – 1 of 1) sorted by relevance
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 29 macro_rules! fits_within { 43 fn fits_within<T: Integer>(value: T, num_bits: u32) -> bool { in fits_within() 44 fits_within!(value, T, num_bits) in fits_within() 269 const_assert!(fits_within!(VALUE, $type, N)); 271 // SAFETY: `fits_within` confirmed that `VALUE` can be represented within 282 fits_within!(value, $type, N), 354 fits_within(value, N).then(|| { 355 // SAFETY: `fits_within` confirmed that `value` can be represented within `N` bits. 394 fits_within(expr, N), 398 // SAFETY: `fits_within` confirme 28 macro_rules! fits_within { global() macro 42 fn fits_within<T: Integer>(value: T, num_bits: u32) -> bool { fits_within() function [all...] |