wiwi::num

Trait FromNum

Source
pub trait FromNum<Num>
where Self: Sealed,
{ // Required method fn from_num(num: Num) -> Self; }

Required Methods§

Source

fn from_num(num: Num) -> Self

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 FromNum<bool> for f32

Source§

impl FromNum<bool> for f64

Source§

impl FromNum<bool> for i8

Source§

impl FromNum<bool> for i16

Source§

impl FromNum<bool> for i32

Source§

impl FromNum<bool> for i64

Source§

impl FromNum<bool> for i128

Source§

impl FromNum<bool> for isize

Source§

impl FromNum<bool> for u8

Source§

impl FromNum<bool> for u16

Source§

impl FromNum<bool> for u32

Source§

impl FromNum<bool> for u64

Source§

impl FromNum<bool> for u128

Source§

impl FromNum<bool> for usize

Source§

impl FromNum<f32> for f32

Source§

impl FromNum<f32> for f64

Source§

impl FromNum<f64> for f64

Source§

impl FromNum<i8> for f32

Source§

fn from_num(num: i8) -> f32

Source§

impl FromNum<i8> for f64

Source§

fn from_num(num: i8) -> f64

Source§

impl FromNum<i8> for i8

Source§

fn from_num(num: i8) -> i8

Source§

impl FromNum<i8> for i16

Source§

fn from_num(num: i8) -> i16

Source§

impl FromNum<i8> for i32

Source§

fn from_num(num: i8) -> i32

Source§

impl FromNum<i8> for i64

Source§

fn from_num(num: i8) -> i64

Source§

impl FromNum<i8> for i128

Source§

impl FromNum<i8> for isize

Source§

impl FromNum<i16> for f32

Source§

impl FromNum<i16> for f64

Source§

impl FromNum<i16> for i16

Source§

impl FromNum<i16> for i32

Source§

impl FromNum<i16> for i64

Source§

impl FromNum<i16> for i128

Source§

impl FromNum<i16> for isize

Source§

impl FromNum<i32> for f64

Source§

impl FromNum<i32> for i32

Source§

impl FromNum<i32> for i64

Source§

impl FromNum<i32> for i128

Source§

impl FromNum<i32> for isize

Source§

impl FromNum<i64> for i64

Source§

impl FromNum<i64> for i128

Source§

impl FromNum<i64> for isize

Source§

impl FromNum<i128> for i128

Source§

impl FromNum<isize> for i64

Source§

impl FromNum<isize> for i128

Source§

impl FromNum<isize> for isize

Source§

impl FromNum<u8> for f32

Source§

fn from_num(num: u8) -> f32

Source§

impl FromNum<u8> for f64

Source§

fn from_num(num: u8) -> f64

Source§

impl FromNum<u8> for i16

Source§

fn from_num(num: u8) -> i16

Source§

impl FromNum<u8> for i32

Source§

fn from_num(num: u8) -> i32

Source§

impl FromNum<u8> for i64

Source§

fn from_num(num: u8) -> i64

Source§

impl FromNum<u8> for i128

Source§

impl FromNum<u8> for isize

Source§

impl FromNum<u8> for u8

Source§

fn from_num(num: u8) -> u8

Source§

impl FromNum<u8> for u16

Source§

fn from_num(num: u8) -> u16

Source§

impl FromNum<u8> for u32

Source§

fn from_num(num: u8) -> u32

Source§

impl FromNum<u8> for u64

Source§

fn from_num(num: u8) -> u64

Source§

impl FromNum<u8> for u128

Source§

impl FromNum<u8> for usize

Source§

impl FromNum<u16> for f32

Source§

impl FromNum<u16> for f64

Source§

impl FromNum<u16> for i32

Source§

impl FromNum<u16> for i64

Source§

impl FromNum<u16> for i128

Source§

impl FromNum<u16> for isize

Source§

impl FromNum<u16> for u16

Source§

impl FromNum<u16> for u32

Source§

impl FromNum<u16> for u64

Source§

impl FromNum<u16> for u128

Source§

impl FromNum<u16> for usize

Source§

impl FromNum<u32> for f64

Source§

impl FromNum<u32> for i64

Source§

impl FromNum<u32> for i128

Source§

impl FromNum<u32> for isize

Source§

impl FromNum<u32> for u32

Source§

impl FromNum<u32> for u64

Source§

impl FromNum<u32> for u128

Source§

impl FromNum<u32> for usize

Source§

impl FromNum<u64> for i128

Source§

impl FromNum<u64> for u64

Source§

impl FromNum<u64> for u128

Source§

impl FromNum<u64> for usize

Source§

impl FromNum<u128> for u128

Source§

impl FromNum<usize> for i128

Source§

impl FromNum<usize> for u64

Source§

impl FromNum<usize> for u128

Source§

impl FromNum<usize> for usize

Implementors§