Trait zng_layout::unit::euclid::num::Ceil

pub trait Ceil: Copy {
    // Required method
    fn ceil(self) -> Self;
}
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).

Object Safety§

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§

source§

impl Ceil for Dip

source§

impl Ceil for Px

§

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,