euclid::num

Trait Ceil

Source
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§

Source

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§

Source§

impl Ceil for f32

Source§

fn ceil(self) -> f32

Source§

impl Ceil for f64

Source§

fn ceil(self) -> f64

Source§

impl Ceil for i16

Source§

fn ceil(self) -> i16

Source§

impl Ceil for i32

Source§

fn ceil(self) -> i32

Source§

impl Ceil for i64

Source§

fn ceil(self) -> i64

Source§

impl Ceil for isize

Source§

fn ceil(self) -> isize

Source§

impl Ceil for u16

Source§

fn ceil(self) -> u16

Source§

impl Ceil for u32

Source§

fn ceil(self) -> u32

Source§

impl Ceil for u64

Source§

fn ceil(self) -> u64

Source§

impl Ceil for usize

Source§

fn ceil(self) -> usize

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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