Trait peroxide::traits::float::FloatWithPrecision

source ·
pub trait FloatWithPrecision {
    // Required methods
    fn round_with_precision(&self, precision: usize) -> Self;
    fn floor_with_precision(&self, precision: usize) -> Self;
    fn ceil_with_precision(&self, precision: usize) -> Self;
}

Required Methods§

source

fn round_with_precision(&self, precision: usize) -> Self

source

fn floor_with_precision(&self, precision: usize) -> Self

source

fn ceil_with_precision(&self, precision: usize) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FloatWithPrecision for f32

source§

fn round_with_precision(&self, precision: usize) -> Self

source§

fn floor_with_precision(&self, precision: usize) -> Self

source§

fn ceil_with_precision(&self, precision: usize) -> Self

source§

impl FloatWithPrecision for f64

source§

fn round_with_precision(&self, precision: usize) -> Self

source§

fn floor_with_precision(&self, precision: usize) -> Self

source§

fn ceil_with_precision(&self, precision: usize) -> Self

Implementors§