Trait RoundTo

Source
pub trait RoundTo {
    // Required method
    fn round_to(&self, places: usize) -> Self;
}

Required Methods§

Source

fn round_to(&self, places: usize) -> 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.

Implementors§

Source§

impl<T> RoundTo for T
where T: Float,