iced_renderer::geometry::path::lyon_path::geom::euclid::num

Trait Ceil

pub trait Ceil: Copy {
    // Required method
    fn ceil(self) -> Self;
}
Available on crate feature geometry only.
Expand description

Defines the smallest integer equal or greater than the original value.

Required Methods§

fn ceil(self) -> Self

Rounds to the smallest integer equal or greater 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§

§

impl Ceil for f32

§

fn ceil(self) -> f32

§

impl Ceil for f64

§

fn ceil(self) -> f64

§

impl Ceil for i16

§

fn ceil(self) -> i16

§

impl Ceil for i32

§

fn ceil(self) -> i32

§

impl Ceil for i64

§

fn ceil(self) -> i64

§

impl Ceil for isize

§

fn ceil(self) -> isize

§

impl Ceil for u16

§

fn ceil(self) -> u16

§

impl Ceil for u32

§

fn ceil(self) -> u32

§

impl Ceil for u64

§

fn ceil(self) -> u64

§

impl Ceil for usize

§

fn ceil(self) -> usize

Implementors§

§

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

§

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

§

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

§

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

§

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

§

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