Struct me3_framework::overlay::widgets::plot::CoordinatesFormatter
source · [−]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
) -> CoordinatesFormatter
pub fn new(
function: impl Fn(&PlotPoint, &PlotBounds) -> String + 'static
) -> CoordinatesFormatter
Create a new formatter based on the pointer coordinate and the plot bounds.
sourcepub fn with_decimals(num_decimals: usize) -> CoordinatesFormatter
pub fn with_decimals(num_decimals: usize) -> CoordinatesFormatter
Show a fixed number of decimal places.
Trait Implementations
sourceimpl Default for CoordinatesFormatter
impl Default for CoordinatesFormatter
sourcefn default() -> CoordinatesFormatter
fn default() -> CoordinatesFormatter
Returns the “default value” for a type. Read more
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