Type Definition style::values::specified::length::NonNegativeLength
[−]
[src]
type NonNegativeLength = NonNegative<Length>;
A wrapper of Length, whose value must be >= 0.
Methods
impl NonNegativeLength
[src]
pub fn zero() -> Self
[src]
Returns a zero
length.
pub fn from_px(px_value: CSSFloat) -> Self
[src]
Get an absolute length from a px value.
Trait Implementations
impl From<NoCalcLength> for NonNegativeLength
[src]
fn from(len: NoCalcLength) -> Self
[src]
Performs the conversion.