Skip to main content

collect_all_annotations

Function collect_all_annotations 

Source
pub fn collect_all_annotations(document: &Document) -> Vec<&Annotation>
Expand description

Collects all annotations in the document into a vector.

Returns annotations in document order (top to bottom), including those at document-level, session-level, and nested within content items. This is a convenience wrapper around for_each_annotation for cases where you need a collected result rather than a streaming callback.