Lines Matching refs:ty
13 $ty:ty
21 pub fn [<checked_bit_ $ty>](n: u32) -> Option<$ty> {
22 (1 as $ty).checked_shl(n)
31 pub const fn [<bit_ $ty>](n: u32) -> $ty {
32 build_assert!(n < <$ty>::BITS);
33 (1 as $ty) << n
46 $ty:ty,
59 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> {
67 let high = [<checked_bit_ $ty>](end)?;
68 let low = [<checked_bit_ $ty>](start)?;
79 pub const fn [<genmask_ $ty>](range: RangeInclusive<u32>) -> $ty {
85 let high = [<bit_ $ty>](end);
86 let low = [<bit_ $ty>](start);