[−][src]Trait euclid::num::Round
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).
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]
See Point2D::round()
impl<T: Round, U> Round for Point3D<T, U>
[src]
fn round(self) -> Self
[src]
See Point3D::round()
impl<T: Round, U> Round for Size2D<T, U>
[src]
fn round(self) -> Self
[src]
See Size2D::round()
.
impl<T: Round, U> Round for Size3D<T, U>
[src]
fn round(self) -> Self
[src]
See Size3D::round()
.