ToU16

Trait ToU16 

Source
pub trait ToU16:
    Sized
    + TryInto<u16>
    + TryInto<i128>
    + Copy {
    // Provided method
    fn u16(self) -> Result<u16, MathError> { ... }
}

Provided Methods§

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 ToU16 for i16

Source§

impl ToU16 for i32

Source§

impl ToU16 for i64

Source§

impl ToU16 for u8

Source§

impl ToU16 for u16

Source§

impl ToU16 for u32

Source§

impl ToU16 for u64

Source§

impl ToU16 for usize

Implementors§