Trait ToUnsigned

Source
pub trait ToUnsigned {
    type Output;

    // Required method
    fn to_unsigned(self) -> Self::Output;
}
Expand description

For type that have an unsigned equivalent

Required Associated Types§

Source

type Output

The unsigned equivalence

Required Methods§

Source

fn to_unsigned(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl ToUnsigned for f32

Source§

impl ToUnsigned for f64

Source§

impl ToUnsigned for i8

Source§

impl ToUnsigned for i16

Source§

impl ToUnsigned for i32

Source§

impl ToUnsigned for i64

Source§

impl ToUnsigned for isize

Source§

impl ToUnsigned for u8

Source§

impl ToUnsigned for u16

Source§

impl ToUnsigned for u32

Source§

impl ToUnsigned for u64

Source§

impl ToUnsigned for usize

Source§

impl<T, const N: usize> ToUnsigned for [T; N]
where T: ToUnsigned,

Source§

type Output = [<T as ToUnsigned>::Output; N]

Source§

fn to_unsigned(self) -> Self::Output

Implementors§