Trait figures::Round[][src]

pub trait Round: Copy {
    #[must_use]
    fn round(self) -> Self;
}
Expand description

Defines the nearest integer value to the original value.

Required methods

Rounds to the nearest integer value.

This behavior is preserved for negative values (unlike the basic cast).

Implementations on Foreign Types

Implementors