Skip to main content

ToU64

Trait ToU64 

Source
pub trait ToU64 {
    // Required method
    fn to_u64(self) -> u64;
}
Expand description

Similarly, a maximum address size of u64 is assumed widely here, so let’s have ergonomic conversion from usize to u64.

Required Methods§

Source

fn to_u64(self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToU64 for usize

Source§

fn to_u64(self) -> u64

Implementors§