pub struct AnnotationEntry<T> {
pub annotation: Rc<T>,
pub local_position: Offset,
}Expand description
Information collected for an annotation that is found in the layer tree.
See also:
AnyLayer::find_all_annotations, which creates and uses objects of this type.
Fields§
§annotation: Rc<T>The annotation object that is found.
local_position: OffsetThe target location described by the local coordinate space of the annotation object.
Implementations§
Source§impl<T> AnnotationEntry<T>
impl<T> AnnotationEntry<T>
Sourcepub fn new(annotation: Rc<T>, local_position: Offset) -> AnnotationEntry<T>
pub fn new(annotation: Rc<T>, local_position: Offset) -> AnnotationEntry<T>
Create an entry of found annotation by providing the object and related information.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for AnnotationEntry<T>
impl<T> !Sync for AnnotationEntry<T>
impl<T> Freeze for AnnotationEntry<T>
impl<T> RefUnwindSafe for AnnotationEntry<T>where
Rc<T>: RefUnwindSafe,
impl<T> Unpin for AnnotationEntry<T>
impl<T> UnsafeUnpin for AnnotationEntry<T>where
Rc<T>: UnsafeUnpin,
impl<T> UnwindSafe for AnnotationEntry<T>where
Rc<T>: 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