[go: up one dir, main page]

Trait FromUnsigned

Source
pub trait FromUnsigned {
    // Required method
    fn from_unsigned<U>() -> Self
       where U: Unsigned;
}
Expand description

Conversion from type-level Unsigned integers.

Enables being generic over types which can be created from type-level integers. It should probably be in typenum itself…

Required Methods§

Source

fn from_unsigned<U>() -> Self
where U: Unsigned,

Creates a value from a type.

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 FromUnsigned for i8

Source§

impl FromUnsigned for i16

Source§

impl FromUnsigned for i32

Source§

impl FromUnsigned for i64

Source§

impl FromUnsigned for isize

Source§

impl FromUnsigned for u8

Source§

impl FromUnsigned for u16

Source§

impl FromUnsigned for u32

Source§

impl FromUnsigned for u64

Source§

impl FromUnsigned for usize

Implementors§