Struct egui_plot::CoordinatesFormatter
source · pub struct CoordinatesFormatter { /* private fields */ }
Expand description
Specifies the coordinates formatting when passed to Plot::coordinates_formatter
.
Implementations§
source§impl CoordinatesFormatter
impl CoordinatesFormatter
sourcepub fn new(
function: impl Fn(&PlotPoint, &PlotBounds) -> String + 'static
) -> Self
pub fn new( function: impl Fn(&PlotPoint, &PlotBounds) -> String + 'static ) -> 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 Freeze for CoordinatesFormatter
impl !RefUnwindSafe for CoordinatesFormatter
impl !Send for CoordinatesFormatter
impl !Sync for CoordinatesFormatter
impl Unpin for CoordinatesFormatter
impl !UnwindSafe for CoordinatesFormatter
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