Skip to main content

ToU64

Trait ToU64 

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

Trait that abstracts over usize and u64.

There are no From implementations between usize and u64, but we assert below that all the architectures we support are 64-bit.

Required Methods§

Source

fn to_u64(self) -> u64

Implementations on Foreign Types§

Source§

impl ToU64 for u64

Source§

fn to_u64(self) -> u64

Source§

impl ToU64 for usize

Source§

fn to_u64(self) -> u64

Implementors§