wiwi::num

Trait FromU8

Source
pub trait FromU8
where Self: Sealed,
{ // Required method fn from_u8(value: u8) -> Self; }
Expand description

Trait for number types that can be converted from u8, losslessly

Required Methods§

Source

fn from_u8(value: u8) -> Self

Convert from a u8 value

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 FromU8 for f32

Source§

fn from_u8(value: u8) -> f32

Source§

impl FromU8 for f64

Source§

fn from_u8(value: u8) -> f64

Source§

impl FromU8 for i16

Source§

fn from_u8(value: u8) -> i16

Source§

impl FromU8 for i32

Source§

fn from_u8(value: u8) -> i32

Source§

impl FromU8 for i64

Source§

fn from_u8(value: u8) -> i64

Source§

impl FromU8 for i128

Source§

fn from_u8(value: u8) -> i128

Source§

impl FromU8 for isize

Source§

fn from_u8(value: u8) -> isize

Source§

impl FromU8 for u8

Source§

fn from_u8(value: u8) -> u8

Source§

impl FromU8 for u16

Source§

fn from_u8(value: u8) -> u16

Source§

impl FromU8 for u32

Source§

fn from_u8(value: u8) -> u32

Source§

impl FromU8 for u64

Source§

fn from_u8(value: u8) -> u64

Source§

impl FromU8 for u128

Source§

fn from_u8(value: u8) -> u128

Source§

impl FromU8 for usize

Source§

fn from_u8(value: u8) -> usize

Implementors§