pub struct AnnotationManager { /* private fields */ }Expand description
Annotation manager
Implementations§
Source§impl AnnotationManager
impl AnnotationManager
Sourcepub fn add_annotation(
&mut self,
page_ref: ObjectReference,
annotation: Annotation,
) -> ObjectReference
pub fn add_annotation( &mut self, page_ref: ObjectReference, annotation: Annotation, ) -> ObjectReference
Add an annotation to a page
Sourcepub fn get_page_annotations(
&self,
page_ref: &ObjectReference,
) -> Option<&Vec<Annotation>>
pub fn get_page_annotations( &self, page_ref: &ObjectReference, ) -> Option<&Vec<Annotation>>
Get annotations for a page
Sourcepub fn all_annotations(&self) -> &HashMap<ObjectReference, Vec<Annotation>>
pub fn all_annotations(&self) -> &HashMap<ObjectReference, Vec<Annotation>>
Get all annotations
Trait Implementations§
Source§impl Debug for AnnotationManager
impl Debug for AnnotationManager
Auto Trait Implementations§
impl Freeze for AnnotationManager
impl RefUnwindSafe for AnnotationManager
impl Send for AnnotationManager
impl Sync for AnnotationManager
impl Unpin for AnnotationManager
impl UnsafeUnpin for AnnotationManager
impl UnwindSafe for AnnotationManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more