Struct egui_plot::CoordinatesFormatter
source · pub struct CoordinatesFormatter<'a> { /* private fields */ }Expand description
Specifies the coordinates formatting when passed to Plot::coordinates_formatter.
Implementations§
source§impl<'a> CoordinatesFormatter<'a>
impl<'a> CoordinatesFormatter<'a>
sourcepub fn new(function: impl Fn(&PlotPoint, &PlotBounds) -> String + 'a) -> Self
pub fn new(function: impl Fn(&PlotPoint, &PlotBounds) -> String + 'a) -> Self
Create a new formatter based on the pointer coordinate and the plot bounds.
sourcepub fn with_decimals(num_decimals: usize) -> Self
pub fn with_decimals(num_decimals: usize) -> Self
Show a fixed number of decimal places.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CoordinatesFormatter<'a>
impl<'a> !RefUnwindSafe for CoordinatesFormatter<'a>
impl<'a> !Send for CoordinatesFormatter<'a>
impl<'a> !Sync for CoordinatesFormatter<'a>
impl<'a> Unpin for CoordinatesFormatter<'a>
impl<'a> !UnwindSafe for CoordinatesFormatter<'a>
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