Skip to main content

splash_ceil

Function splash_ceil 

Source
pub fn splash_ceil(x: f64) -> i32
Expand description

Re-export every public type from the color crate, including all arithmetic helpers from color::convert.

Downstream modules within this crate can import everything they need with a single use crate::types::*. Ceil toward +∞, returning i32.

Equivalent to C++ splashCeil — matches the portable fallback path.

§Valid input range

Any f64. See splash_floor for edge-case behaviour.

§Edge cases

Same as splash_floor: non-finite inputs return i32::MAX (for +∞) or i32::MIN (for −∞ and NaN).

§Panic

Never panics.