Trait ToInteger

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

Trait for casting: Defines how to convert when cast to an integer.

Required Methods§

Source

fn to_integer(&self) -> i64

Implementations on Foreign Types§

Source§

impl ToInteger for &str

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for bool

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for f32

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for f64

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for i8

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for i16

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for i32

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for i64

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for isize

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for u8

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for u16

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for u32

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for u64

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for usize

Source§

fn to_integer(&self) -> i64

Source§

impl ToInteger for String

Source§

fn to_integer(&self) -> i64

Implementors§