Trait euclid::num::Floor

source ·
pub trait Floor: Copy {
    // Required method
    fn floor(self) -> Self;
}
Expand description

Defines the biggest integer equal or lower than the original value.

Required Methods§

source

fn floor(self) -> Self

Rounds to the biggest integer equal or lower than the original value.

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

Implementations on Foreign Types§

source§

impl Floor for usize

source§

fn floor(self) -> usize

source§

impl Floor for i64

source§

fn floor(self) -> i64

source§

impl Floor for f64

source§

fn floor(self) -> f64

source§

impl Floor for u32

source§

fn floor(self) -> u32

source§

impl Floor for i16

source§

fn floor(self) -> i16

source§

impl Floor for isize

source§

fn floor(self) -> isize

source§

impl Floor for f32

source§

fn floor(self) -> f32

source§

impl Floor for i32

source§

fn floor(self) -> i32

source§

impl Floor for u64

source§

fn floor(self) -> u64

source§

impl Floor for u16

source§

fn floor(self) -> u16

Implementors§

source§

impl<T: Floor, U> Floor for Point2D<T, U>

source§

impl<T: Floor, U> Floor for Point3D<T, U>

source§

impl<T: Floor, U> Floor for Size2D<T, U>

source§

impl<T: Floor, U> Floor for Size3D<T, U>

source§

impl<T: Floor, U> Floor for Vector2D<T, U>

source§

impl<T: Floor, U> Floor for Vector3D<T, U>