[][src]Trait euclid::num::Round

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

Defines the nearest integer value to the original value.

Required methods

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

Rounds to the nearest integer value.

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

Loading content...

Implementations on Foreign Types

impl Round for i16[src]

impl Round for u16[src]

impl Round for i32[src]

impl Round for u32[src]

impl Round for i64[src]

impl Round for u64[src]

impl Round for isize[src]

impl Round for usize[src]

impl Round for f32[src]

impl Round for f64[src]

Loading content...

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]

Loading content...