Trait Int

Source
pub trait Int:
    Sized
    + Copy
    + FromStr
    + CheckedMul {
    // Required method
    fn from_u64(n: u64) -> Option<Self>;
}
Expand description

Represents the integer trait

Required Methods§

Source

fn from_u64(n: u64) -> Option<Self>

Returns a value from given u64 num

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 i8

Source§

impl Int for i16

Source§

impl Int for i32

Source§

impl Int for i64

Source§

impl Int for isize

Source§

impl Int for u8

Source§

impl Int for u16

Source§

impl Int for u32

Source§

impl Int for u64

Source§

impl Int for usize

Implementors§