Function snap_to_edges
pub fn snap_to_edges(rect: Rect, bounds: Rect, gap: f64) -> RectExpand description
rect moved onto an edge of bounds it stands within 32 px of, gap in
from it: the settle every floating thing uses, cards and windows alike.