ToI64

Trait ToI64 

Source
pub trait ToI64 {
    // Required method
    fn to_i64(&self) -> i64;
}
Expand description

Trait defining instance method to_i64() : i64 that provides a no-cost or low-cost conversion into i64.

It is expected that the implementing type “is-a” i64 in a logical manner.

§Additional Implementations on Foreign Types

§Built-in Types

If the feature "implement-ToI64-for-built_ins" is defined (as it is by "default"), then this is also implemented for the following type(s):

Required Methods§

Source

fn to_i64(&self) -> i64

Implementations on Foreign Types§

Source§

impl ToI64 for i8

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for i16

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for i32

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for i64

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for u8

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for u16

Source§

fn to_i64(&self) -> i64

Source§

impl ToI64 for u32

Source§

fn to_i64(&self) -> i64

Source§

impl<T: ToI64 + ?Sized> ToI64 for Box<T>

Available on non-crate feature nostd only.
Source§

fn to_i64(&self) -> i64

Source§

impl<T: ToI64 + ?Sized> ToI64 for Rc<T>

Available on non-crate feature nostd only.
Source§

fn to_i64(&self) -> i64

Implementors§