#[allow(clippy::cast_possible_truncation)]
pub const fn clamp_us_to_u32(from: usize) -> u32 {
from as u32
}
#[allow(clippy::cast_possible_truncation)]
pub const fn clamp_u32_to_u16(from: u32) -> u16 {
from as u16
}
#[allow(clippy::cast_possible_truncation)]
pub const fn clamp_u32_to_u8(from: u32) -> u8 {
from as u8
}
#[allow(clippy::cast_possible_truncation)]
#[cfg(feature = "bcj")] pub const fn clamp_u64_to_u8(from: u64) -> u8 {
from as u8
}
#[allow(clippy::cast_possible_truncation)]
pub const fn clamp_u64_to_u32(from: u64) -> u32 {
from as u32
}
#[allow(clippy::cast_possible_truncation)]
#[cfg(feature = "crc64")] pub const fn clamp_u64_to_us(from: u64) -> usize {
from as usize
}