pub fn navigate(
document: &Document,
position: Position,
direction: AnnotationDirection,
) -> Option<AnnotationNavigationResult>Expand description
Navigates to an annotation in the specified direction.
This is the lower-level function used by next_annotation and previous_annotation.
Annotations are sorted by their header position, and navigation wraps at document
boundaries.