Skip to main content

nearest_block_markers

Function nearest_block_markers 

Source
pub(crate) fn nearest_block_markers(
    markers: &[SlotMarker],
    pos: Pos2,
) -> Vec<SlotMarker>
Expand description

The block whose markers the route tool shows with the pointer at pos: the one owning the nearest marker in range, so the cursor is never crowded by several blocks’ markers.