UnsignedPType

Trait UnsignedPType 

Source
pub trait UnsignedPType: IntegerPType + Unsigned { }
Expand description

Trait for unsigned integer primitive types used where non-negative values are required.

Includes only unsigned integer types (u8, u16, u32, u64).

You can use the match_each_unsigned_integer_ptype macro to help with writing “generic” code over dynamically typed code.

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.

Implementors§

Source§

impl<T> UnsignedPType for T

Implements UnsignedPType for all possible T that have the correct bounds.