Struct egui_plot::ClosestElem
source · pub struct ClosestElem {
pub index: usize,
pub dist_sq: f32,
}Expand description
Result of super::PlotItem::find_closest() search, identifies an element inside the item for immediate use
Fields§
§index: usizePosition of hovered-over value (or bar/box-plot/…) in PlotItem
dist_sq: f32Squared distance from the mouse cursor (needed to compare against other PlotItems, which might be nearer)
Auto Trait Implementations§
impl Freeze for ClosestElem
impl RefUnwindSafe for ClosestElem
impl Send for ClosestElem
impl Sync for ClosestElem
impl Unpin for ClosestElem
impl UnwindSafe for ClosestElem
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