pub enum AnnotationSelection {
None,
Single(AnnotationId),
Multi(Vec<AnnotationId>),
}Expand description
Which annotation(s) are currently selected.
Variants§
None
No selection.
Single(AnnotationId)
A single annotation is selected (handles drawn, draggable).
Multi(Vec<AnnotationId>)
Multiple annotations selected (v1: not produced by UI).
Implementations§
Source§impl AnnotationSelection
impl AnnotationSelection
Sourcepub fn contains(&self, id: &AnnotationId) -> bool
pub fn contains(&self, id: &AnnotationId) -> bool
Returns true if id is among the selected annotations.
Trait Implementations§
Source§impl Clone for AnnotationSelection
impl Clone for AnnotationSelection
Source§fn clone(&self) -> AnnotationSelection
fn clone(&self) -> AnnotationSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationSelection
impl Debug for AnnotationSelection
Source§impl PartialEq for AnnotationSelection
impl PartialEq for AnnotationSelection
impl StructuralPartialEq for AnnotationSelection
Auto Trait Implementations§
impl Freeze for AnnotationSelection
impl RefUnwindSafe for AnnotationSelection
impl Send for AnnotationSelection
impl Sync for AnnotationSelection
impl Unpin for AnnotationSelection
impl UnsafeUnpin for AnnotationSelection
impl UnwindSafe for AnnotationSelection
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