PrecisionRound

Trait PrecisionRound 

Source
pub trait PrecisionRound {
    // Required method
    fn round(self, precision: usize) -> Self;
}
Expand description

A trait for rounding scalars.

Required Methods§

Source

fn round(self, precision: usize) -> Self

Precision round a scalar to a number of decimal places.

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§