Trait cosmic::iced_winit::graphics::geometry::path::lyon_path::geom::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).

Object Safety§

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, U> Floor for Point2D<T, U>
where T: Floor,

source§

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

source§

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

source§

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

source§

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

source§

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