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§
Sourcefn from_unsigned<U>() -> Selfwhere
U: Unsigned,
fn from_unsigned<U>() -> Selfwhere
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.