Skip to main content

Round

Trait Round 

Source
pub trait Round {
    // Required method
    fn round(self) -> Self;
}
Expand description

The one f64 method the game calls that needs std.

Required Methods§

Source

fn round(self) -> Self

Nearest integer, halves away from zero.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Round for f64

Source§

fn round(self) -> Self

Implementors§