Trait euclid::num::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

#[must_use]
fn round(self) -> Self
[src]

Rounds to the nearest integer value.

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

Implementations on Foreign Types

impl Round for i16[src]

fn round(self) -> i16[src]

impl Round for u16[src]

fn round(self) -> u16[src]

impl Round for i32[src]

fn round(self) -> i32[src]

impl Round for u32[src]

fn round(self) -> u32[src]

impl Round for i64[src]

fn round(self) -> i64[src]

impl Round for u64[src]

fn round(self) -> u64[src]

impl Round for isize[src]

fn round(self) -> isize[src]

impl Round for usize[src]

fn round(self) -> usize[src]

impl Round for f32[src]

fn round(self) -> f32[src]

impl Round for f64[src]

fn round(self) -> f64[src]

Implementors

impl<T: Round, U> Round for Point2D<T, U>[src]

fn round(self) -> Self[src]

impl<T: Round, U> Round for Point3D<T, U>[src]

fn round(self) -> Self[src]

impl<T: Round, U> Round for Size2D<T, U>[src]

fn round(self) -> Self[src]

impl<T: Round, U> Round for Size3D<T, U>[src]

fn round(self) -> Self[src]

impl<T: Round, U> Round for Vector2D<T, U>[src]

fn round(self) -> Self[src]

impl<T: Round, U> Round for Vector3D<T, U>[src]

fn round(self) -> Self[src]