Skip to main content

UnsignedPrimitive

Trait UnsignedPrimitive 

Source
pub trait UnsignedPrimitive:
    Unsigned
    + Copy
    + Ord
    + Eq
    + Debug
    + Default
    + Add<Output = Self>
    + Sub<Output = Self>
    + Sum<Self> {
    // Required methods
    fn as_f32(self) -> f32;
    fn as_f64(self) -> f64;
}
Expand description

Built-in unsigned integer type used for exact interval measures.

Required Methods§

Source

fn as_f32(self) -> f32

Source

fn as_f64(self) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> UnsignedPrimitive for T
where T: Unsigned + Copy + Ord + Eq + Debug + Default + Add<Output = Self> + Sub<Output = Self> + Sum<Self>,