Struct comfy_wgpu::egui::widgets::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
) -> 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§
source§impl Default for CoordinatesFormatter
impl Default for CoordinatesFormatter
source§fn 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§
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