Skip to main content

IntPrimitive

Trait IntPrimitive 

Source
pub trait IntPrimitive: Int {
    // Required methods
    fn as_f32(self) -> f32;
    fn as_f64(self) -> f64;
}
Expand description

Built-in integer coordinate type accepted by closed-open intervals.

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> IntPrimitive for T
where T: Int,