Module const_casts

Module const_casts 

Source
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 i16 to i64
u16_to_u32
Converts u16 to u32
u16_to_u64
Converts u16 to u64
u32_to_u64
Converts u32 to u64