Skip to main content

Integer

Trait Integer 

Source
pub trait Integer {
    // Required method
    fn to_i128(&self) -> Option<i128>;
}
Expand description

Integers (see Range).

Required Methods§

Source

fn to_i128(&self) -> Option<i128>

Returns the value as i128, None if it’s larger.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Integer for i8

Source§

impl Integer for i16

Source§

impl Integer for i32

Source§

impl Integer for i64

Source§

impl Integer for i128

Source§

impl Integer for isize

Source§

impl Integer for u8

Source§

impl Integer for u16

Source§

impl Integer for u32

Source§

impl Integer for u64

Source§

impl Integer for u128

Source§

impl Integer for usize

Implementors§