#[non_exhaustive]pub enum PlotFormat {
Number,
Memory,
Percentage,
Watts,
}
Expand description
The format of a plot to be shown in the Tracy profiler UI.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Number
Values will be displayed as plain numbers. This is the default.
Memory
Values will be displayed as byte counts, showing as kilobytes, megabytes, etc.
Percentage
Values will be shown as a percentage (with 100 being equal to 100%).
Watts
Values will be shown as watts.
Trait Implementations§
Source§impl Clone for PlotFormat
impl Clone for PlotFormat
Source§fn clone(&self) -> PlotFormat
fn clone(&self) -> PlotFormat
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 PlotFormat
impl Debug for PlotFormat
Source§impl Default for PlotFormat
impl Default for PlotFormat
Source§fn default() -> PlotFormat
fn default() -> PlotFormat
Returns the “default value” for a type. Read more
Source§impl Hash for PlotFormat
impl Hash for PlotFormat
Source§impl Ord for PlotFormat
impl Ord for PlotFormat
Source§fn cmp(&self, other: &PlotFormat) -> Ordering
fn cmp(&self, other: &PlotFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PlotFormat
impl PartialEq for PlotFormat
Source§impl PartialOrd for PlotFormat
impl PartialOrd for PlotFormat
impl Copy for PlotFormat
impl Eq for PlotFormat
impl StructuralPartialEq for PlotFormat
Auto Trait Implementations§
impl Freeze for PlotFormat
impl RefUnwindSafe for PlotFormat
impl Send for PlotFormat
impl Sync for PlotFormat
impl Unpin for PlotFormat
impl UnwindSafe for PlotFormat
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