pub struct CoordinatesFormatter { /* private fields */ }
Expand description
Specifies the coordinates formatting when passed to Plot::coordinates_formatter
.
Implementations
sourceimpl 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 !RefUnwindSafe for CoordinatesFormatter
impl !Send for CoordinatesFormatter
impl !Sync for CoordinatesFormatter
impl Unpin for CoordinatesFormatter
impl !UnwindSafe for CoordinatesFormatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more