pub trait Round: Copy {
#[must_use]
fn round(self) -> Self;
}
Expand description
Defines the nearest integer value to the original value.
#[must_use]
fn round(self) -> Self
[src]
Rounds to the nearest integer value.
This behavior is preserved for negative values (unlike the basic cast).