Skip to main content

parse_px

Function parse_px 

Source
pub fn parse_px(value: &str) -> Option<f64>
Expand description

Parse a CSS length that is a plain px value (e.g. "160px"). Returns None for any other unit or keyword, which callers read as “no constraint”.