ToU64

Trait ToU64 

Source
pub trait ToU64:
    Sized
    + TryInto<u64>
    + TryInto<i128>
    + Copy {
    // Provided method
    fn u64(self) -> Result<u64, MathError> { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToU64 for i16

Source§

impl ToU64 for i32

Source§

impl ToU64 for i64

Source§

impl ToU64 for u8

Source§

impl ToU64 for u16

Source§

impl ToU64 for u32

Source§

impl ToU64 for u64

Source§

impl ToU64 for usize

Implementors§