Skip to main content

native_space

Function native_space 

Source
pub const fn native_space() -> Space
Expand description

The space Space::Auto resolves to on the platform this was compiled for. Stated once — and not here.

The rule (macOS logical, Windows and X11 physical) belongs to pixelcoords_core::space::Units, which is where pixelcoords resolve and emit’s per-format table read it from. This function used to state it a second time, in a second repository, with its own comment explaining it. Two copies of one rule is one rule and one future bug.