Skip to main content

MathClamp

Type Alias MathClamp 

Source
pub type MathClamp = OwnedArray<NumericValue, 3>;
Expand description

A clamp expression over numeric values.

This corresponds to CSSMathClamp in the Typed OM specification. A clamp expression represents constructs such as clamp(10px, 20%, 30px).

The array entries correspond to the lower bound, value, and upper bound, respectively.

Aliased Typeยง

#[repr(C)]
pub struct MathClamp { /* private fields */ }