Skip to main content

RoundFromf32

Trait RoundFromf32 

Source
pub trait RoundFromf32 {
    // Required method
    fn round_from_f32(x: f32) -> Self;
}

Required Methods§

Source

fn round_from_f32(x: f32) -> Self

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 RoundFromf32 for f32

Source§

impl RoundFromf32 for i8

Source§

impl RoundFromf32 for u8

Source§

impl RoundFromf32 for f16

Implementors§