pub trait Round {
fn round(&self, to: &Self, strategy: RoundingStrategy) -> Self;
}
Expand description
A trait for values that can be rounded.
Required Methods
fn round(&self, to: &Self, strategy: RoundingStrategy) -> Self
fn round(&self, to: &Self, strategy: RoundingStrategy) -> Self
Rounds a value to a multiple of to
using the given rounding strategy.