Struct puffin::ScopeRecord
source · pub struct ScopeRecord<'s> {
pub start_ns: NanoSecond,
pub duration_ns: NanoSecond,
pub data: &'s str,
}
Expand description
TODO: Improve encapsulation. Used when parsing a Stream.
Fields§
§start_ns: NanoSecond
The start oif this scope in nanoseconds.
duration_ns: NanoSecond
The duration of this scope in nanoseconds.
data: &'s str
e.g. function argument, like a mesh name. Optional. Example: “image.png”.
Implementations§
source§impl<'s> ScopeRecord<'s>
impl<'s> ScopeRecord<'s>
sourcepub fn stop_ns(&self) -> NanoSecond
pub fn stop_ns(&self) -> NanoSecond
The end of this scope in nanoseconds.
Trait Implementations§
source§impl<'s> Clone for ScopeRecord<'s>
impl<'s> Clone for ScopeRecord<'s>
source§fn clone(&self) -> ScopeRecord<'s>
fn clone(&self) -> ScopeRecord<'s>
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<'s> Debug for ScopeRecord<'s>
impl<'s> Debug for ScopeRecord<'s>
source§impl<'s> PartialEq for ScopeRecord<'s>
impl<'s> PartialEq for ScopeRecord<'s>
source§fn eq(&self, other: &ScopeRecord<'s>) -> bool
fn eq(&self, other: &ScopeRecord<'s>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'s> Copy for ScopeRecord<'s>
impl<'s> Eq for ScopeRecord<'s>
impl<'s> StructuralPartialEq for ScopeRecord<'s>
Auto Trait Implementations§
impl<'s> Freeze for ScopeRecord<'s>
impl<'s> RefUnwindSafe for ScopeRecord<'s>
impl<'s> Send for ScopeRecord<'s>
impl<'s> Sync for ScopeRecord<'s>
impl<'s> Unpin for ScopeRecord<'s>
impl<'s> UnwindSafe for ScopeRecord<'s>
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