Skip to main content

ToU128

Trait ToU128 

Source
pub trait ToU128 {
    // Required method
    fn to_u128(self) -> u128;
}
Expand description

Infallibly convert usize to u128.

Required Methods§

Source

fn to_u128(self) -> u128

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToU128 for usize

Source§

fn to_u128(self) -> u128

Implementors§