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 Forget for AnnotationSelection
impl Freeze for AnnotationSelection
impl Move for AnnotationSelection
impl RefUnwindSafe for AnnotationSelection
impl Send for AnnotationSelectionwhere
RawVecInner: Send,
impl Sync for AnnotationSelectionwhere
RawVecInner: Sync,
impl Unpin for AnnotationSelection
impl UnsafeUnpin for AnnotationSelectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AnnotationId>: UnsafeUnpin,
impl UnwindSafe for AnnotationSelectionwhere
RawVecInner: UnwindSafe,
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