Function snap_rect
pub fn snap_rect(rect: Rect) -> RectExpand description
rect on whole logical pixels. A crisp 1 px edge, a hairline or a
separator stroked on a fractional rect covers two device pixels at half
coverage and stops registering; layout may hand out fractions, the
paint should not. Painted hosts snap a surface’s rect before edging it,
as surface::card does.