pub struct PlotConfiguration { /* private fields */ }
Expand description
Configuration for how a plot appears in the Tracy profiling UI.
§Examples
// Create a red plot line.
let configuration = PlotConfiguration::default().fill(false).color(Some(0xFF0000));
Implementations§
Source§impl PlotConfiguration
impl PlotConfiguration
Sourcepub fn format(self, format: PlotFormat) -> Self
pub fn format(self, format: PlotFormat) -> Self
Sets the format of values on the plot.
Sourcepub fn line_style(self, line_style: PlotLineStyle) -> Self
pub fn line_style(self, line_style: PlotLineStyle) -> Self
Sets the style of lines on the plot.
Sourcepub fn fill(self, fill: bool) -> Self
pub fn fill(self, fill: bool) -> Self
Sets whether the plot should be filled with a solid color below the line.
Sourcepub fn color(self, color: Option<u32>) -> Self
pub fn color(self, color: Option<u32>) -> Self
Sets a custom color of the plot. A value of None
will cause Tracy to create its own color.
§Examples
// Configure the plot to be red.
let red = PlotConfiguration::default().color(Some(0xFF0000));
// Configure the plot to be green.
let green = PlotConfiguration::default().color(Some(0x00FF00));
// Configure the plot to be blue.
let blue = PlotConfiguration::default().color(Some(0x0000FF));
Trait Implementations§
Source§impl Clone for PlotConfiguration
impl Clone for PlotConfiguration
Source§fn clone(&self) -> PlotConfiguration
fn clone(&self) -> PlotConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlotConfiguration
impl Debug for PlotConfiguration
Source§impl Default for PlotConfiguration
impl Default for PlotConfiguration
Source§impl PartialEq for PlotConfiguration
impl PartialEq for PlotConfiguration
impl StructuralPartialEq for PlotConfiguration
Auto Trait Implementations§
impl Freeze for PlotConfiguration
impl RefUnwindSafe for PlotConfiguration
impl Send for PlotConfiguration
impl Sync for PlotConfiguration
impl Unpin for PlotConfiguration
impl UnwindSafe for PlotConfiguration
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