num_traits::sign

Trait Unsigned

Source
pub trait Unsigned: Num { }
Expand description

A trait for values which cannot be negative

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 Unsigned for u8

Source§

impl Unsigned for u16

Source§

impl Unsigned for u32

Source§

impl Unsigned for u64

Source§

impl Unsigned for u128

Source§

impl Unsigned for usize

Source§

impl<T: Unsigned> Unsigned for Wrapping<T>
where Wrapping<T>: Num,

Implementors§