Trait libspecr::ToInt

source ·
pub trait ToInt {
    // Required method
    fn to_int(self) -> Int;
}
Expand description

Conversion to Int.

This is implemented for primitive integer types and usable in const-contexts.

Required Methods§

source

fn to_int(self) -> Int

Converts self to Int.

Implementations on Foreign Types§

source§

impl ToInt for i8

source§

fn to_int(self) -> Int

source§

impl ToInt for i16

source§

fn to_int(self) -> Int

source§

impl ToInt for i32

source§

fn to_int(self) -> Int

source§

impl ToInt for i64

source§

fn to_int(self) -> Int

source§

impl ToInt for i128

source§

fn to_int(self) -> Int

source§

impl ToInt for isize

source§

fn to_int(self) -> Int

source§

impl ToInt for u8

source§

fn to_int(self) -> Int

source§

impl ToInt for u16

source§

fn to_int(self) -> Int

source§

impl ToInt for u32

source§

fn to_int(self) -> Int

source§

impl ToInt for u64

source§

fn to_int(self) -> Int

source§

impl ToInt for u128

source§

fn to_int(self) -> Int

source§

impl ToInt for usize

source§

fn to_int(self) -> Int

Implementors§