mz_ore::cast

Function u16_to_i32

Source
pub const fn u16_to_i32(from: u16) -> i32
Expand description

Casts [$from] to [$to].

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