Trait Round

Source
pub trait Round: Copy + PartialOrd {
    // Provided methods
    fn round(self) -> Self { ... }
    fn abs(self) -> Self { ... }
}

Provided Methods§

Source

fn round(self) -> Self

Source

fn abs(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Round for f32

Source§

fn round(self) -> Self

Source§

fn abs(self) -> Self

Source§

impl Round for f64

Source§

fn round(self) -> Self

Source§

fn abs(self) -> Self

Source§

impl Round for i8

Source§

fn abs(self) -> Self

Source§

impl Round for i16

Source§

fn abs(self) -> Self

Source§

impl Round for i32

Source§

fn abs(self) -> Self

Source§

impl Round for i64

Source§

fn abs(self) -> Self

Source§

impl Round for i128

Source§

fn abs(self) -> Self

Source§

impl Round for isize

Source§

fn abs(self) -> Self

Source§

impl Round for u8

Source§

impl Round for u16

Source§

impl Round for u32

Source§

impl Round for u64

Source§

impl Round for u128

Source§

impl Round for usize

Implementors§