Module map

Source
Expand description

Mapping of data types.

This module provides functions solely for mapping data types into others, mostly similar ones.

#[no_std] compatible.

Functions§

combine_low_high_bits_to_u128
Combine 2 64-bit values into a single u128 value.
ipv4_from_u32
Convert an Ipv4Addr to a u32.
split_u128_into_low_high_bits
Split a u128 value into 2 64-bit values.
timelock_to_u64
Map Timelock to a u64.
u32_from_ipv4
Convert a u32 to an Ipv4Addr.
u64_to_timelock
Map a u64 to a Timelock.