euclid::num

Trait 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).

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 Floor for f32

Source§

fn floor(self) -> f32

Source§

impl Floor for f64

Source§

fn floor(self) -> f64

Source§

impl Floor for i16

Source§

fn floor(self) -> i16

Source§

impl Floor for i32

Source§

fn floor(self) -> i32

Source§

impl Floor for i64

Source§

fn floor(self) -> i64

Source§

impl Floor for isize

Source§

fn floor(self) -> isize

Source§

impl Floor for u16

Source§

fn floor(self) -> u16

Source§

impl Floor for u32

Source§

fn floor(self) -> u32

Source§

impl Floor for u64

Source§

fn floor(self) -> u64

Source§

impl Floor for usize

Source§

fn floor(self) -> usize

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>