Module type_conversion
Expand description
The type_conversion module provides functionality to convert between data types.
Functionsยง
- cast_
i128_ to_ integer_ type - Casts a
i128value to the given integer data type, and returns the new value as eitheru64ori64. - convert_
i32_ to_ i16 - Converts an
i32value to ani16. - convert_
i64_ to_ i16 - Converts an
i64value to ani16. - convert_
i64_ to_ i32 - Converts an
i64value to ani32. - convert_
u64_ to_ i8 - Converts a
u64value to ani8. - convert_
u64_ to_ i16 - Converts a
u64value to ani16. - convert_
u64_ to_ i32 - Converts a
u64value to ani32. - convert_
u64_ to_ i64 - Converts a
u64value to ani64. - convert_
u64_ to_ u8 - Converts a
u64value to au8. - convert_
u64_ to_ u16 - Converts a
u64value to au16. - convert_
u64_ to_ u32 - Converts a
u64value to au32.