next_annotation

Function next_annotation 

Source
pub fn next_annotation(
    document: &Document,
    position: Position,
) -> Option<AnnotationNavigationResult>
Expand description

Finds the next annotation after the current position, wrapping to the first if needed.

Navigation wraps circularly: if the cursor is at or after the last annotation, returns the first annotation in the document. Returns None only if the document has no annotations.