Skip to main content

parse_window_coverage

Function parse_window_coverage 

Source
pub fn parse_window_coverage(
    value: Option<&Value>,
) -> Result<Vec<WindowCoverage>, String>
Expand description

§7.5: parse a coverage array of {base, units} entries. Absent or null is empty; a non-array, a malformed base, or non-string units are rejected explicitly instead of silently defaulting. Shared with the Tauri plugin’s read sidecar.