pub trait MonotonicallyMappableToU128: 'static + PartialOrd + Copy + Debug + Send + Sync {
    // Required methods
    fn to_u128(self) -> u128;
    fn from_u128(val: u128) -> Self;
}
Expand description

Montonic maps a value to u128 value space Monotonic mapping enables PartialOrd on u128 space without conversion to original space.

Required Methods§

source

fn to_u128(self) -> u128

Converts a value to u128.

Internally all fast field values are encoded as u64.

source

fn from_u128(val: u128) -> Self

Converts a value from u128

Internally all fast field values are encoded as u64. Note: To be used for converting encoded Term, Posting values.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MonotonicallyMappableToU128 for u128

source§

fn to_u128(self) -> u128

source§

fn from_u128(val: u128) -> Self

source§

impl MonotonicallyMappableToU128 for Ipv6Addr

source§

fn to_u128(self) -> u128

source§

fn from_u128(val: u128) -> Self

Implementors§