Expand description
Const-compatible integer casting functions.
This module provides explicit, const-compatible functions for integer type conversions
that would normally be done using the Into trait. Since trait methods cannot be used
in const contexts, these functions serve as alternatives that make conversion intent
clear while maintaining compile-time evaluation capabilities.
Functionsยง
- i16_
to_ i64 - Converts
i16toi64 - u16_
to_ u32 - Converts
u16tou32 - u16_
to_ u64 - Converts
u16tou64 - u32_
to_ u64 - Converts
u32tou64