Function snap
pub fn snap(
moving: Placement,
others: &[Placement],
threshold: i32,
) -> PlacementExpand description
Pull moving onto nearby edges of others: its left or right edge onto
another display’s left or right edge, and likewise top and bottom. Each
axis snaps independently to the closest edge within threshold.