libsufr

Trait Int

Source
pub trait Int:
    Debug
    + Add<Output = Self>
    + Sub<Output = Self>
    + Div<Output = Self>
    + Copy
    + Default
    + Display
    + Ord
    + Hash
    + Serialize {
    // Required method
    fn to_usize(&self) -> usize;
}

Required Methods§

Source

fn to_usize(&self) -> usize

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 Int for u32

Source§

fn to_usize(&self) -> usize

Source§

impl Int for u64

Source§

fn to_usize(&self) -> usize

Implementors§