Trait zng_layout::unit::euclid::num::Floor

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§

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Floor for f32

§

fn floor(self) -> f32

§

impl Floor for f64

§

fn floor(self) -> f64

§

impl Floor for i16

§

fn floor(self) -> i16

§

impl Floor for i32

§

fn floor(self) -> i32

§

impl Floor for i64

§

fn floor(self) -> i64

§

impl Floor for isize

§

fn floor(self) -> isize

§

impl Floor for u16

§

fn floor(self) -> u16

§

impl Floor for u32

§

fn floor(self) -> u32

§

impl Floor for u64

§

fn floor(self) -> u64

§

impl Floor for usize

§

fn floor(self) -> usize

Implementors§

source§

impl Floor for Dip

source§

impl Floor for Px

§

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

§

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

§

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

§

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

§

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

§

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