Struct puffin::MergeScope
source · pub struct MergeScope<'s> {
pub relative_start_ns: NanoSecond,
pub total_duration_ns: NanoSecond,
pub duration_per_frame_ns: NanoSecond,
pub max_duration_ns: NanoSecond,
pub num_pieces: usize,
pub id: ScopeId,
pub data: Cow<'s, str>,
pub children: Vec<MergeScope<'s>>,
}Expand description
A scope that has been merged from many different sources
Fields§
§relative_start_ns: NanoSecondRelative to parent.
total_duration_ns: NanoSecondSum of all durations over all frames
duration_per_frame_ns: NanoSecondSelf::total_duration_ns divided by number of frames.
max_duration_ns: NanoSecondThe slowest individual piece.
num_pieces: usizeNumber of pieces that got merged together to us.
id: ScopeIdThe common identifier that we merged using.
data: Cow<'s, str>only set if all children had the same
children: Vec<MergeScope<'s>>The merged children of this merged scope.
Implementations§
source§impl<'s> MergeScope<'s>
impl<'s> MergeScope<'s>
sourcepub fn into_owned(self) -> MergeScope<'static>
pub fn into_owned(self) -> MergeScope<'static>
Clones the merge scope.
Trait Implementations§
source§impl<'s> Clone for MergeScope<'s>
impl<'s> Clone for MergeScope<'s>
source§fn clone(&self) -> MergeScope<'s>
fn clone(&self) -> MergeScope<'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 MergeScope<'s>
impl<'s> Debug for MergeScope<'s>
source§impl<'s> PartialEq for MergeScope<'s>
impl<'s> PartialEq for MergeScope<'s>
source§fn eq(&self, other: &MergeScope<'s>) -> bool
fn eq(&self, other: &MergeScope<'s>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'s> StructuralPartialEq for MergeScope<'s>
Auto Trait Implementations§
impl<'s> Freeze for MergeScope<'s>
impl<'s> RefUnwindSafe for MergeScope<'s>
impl<'s> Send for MergeScope<'s>
impl<'s> Sync for MergeScope<'s>
impl<'s> Unpin for MergeScope<'s>
impl<'s> UnwindSafe for MergeScope<'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