mz_ore::cast::target64

Function u32_to_usize

Source
pub const fn u32_to_usize(from: u32) -> usize
Expand description

Casts [$from] to [$to].

This is equivalent to the crate::cast::CastFrom implementation but is available as a const fn.