Struct tracy_client::PlotName
source · pub struct PlotName(/* private fields */);
Expand description
Name of a plot.
Create with the plot_name!
macro.
Implementations§
source§impl PlotName
impl PlotName
sourcepub fn new_leak(name: String) -> Self
pub fn new_leak(name: String) -> Self
Construct a PlotName
dynamically, leaking the provided String.
You should call this function once for a given name, and store the returned PlotName
for
continued use, to avoid rapid memory use growth. Whenever possible, prefer the
plot_name!
macro, which takes a literal name and doesn’t leak memory.
The resulting value may be used as an argument for the the Client::secondary_frame_mark
and Client::non_continuous_frame
methods.
Trait Implementations§
source§impl Ord for PlotName
impl Ord for PlotName
source§impl PartialOrd for PlotName
impl PartialOrd for PlotName
impl Copy for PlotName
impl Eq for PlotName
impl StructuralPartialEq for PlotName
Auto Trait Implementations§
impl Freeze for PlotName
impl RefUnwindSafe for PlotName
impl Send for PlotName
impl Sync for PlotName
impl Unpin for PlotName
impl UnwindSafe for PlotName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)