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: Cow<'s, str>,
    pub location: Cow<'s, str>,
    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: NanoSecond

Relative to parent.

total_duration_ns: NanoSecond

Sum of all durations over all frames

duration_per_frame_ns: NanoSecond

Self::total_duration_ns divided by number of frames.

max_duration_ns: NanoSecond

The slowest individual piece.

num_pieces: usize

Number of pieces that got merged together to us.

id: Cow<'s, str>

The common identifier that we merged using.

location: Cow<'s, str>

only set if all children had the same

data: Cow<'s, str>

only set if all children had the same

children: Vec<MergeScope<'s>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.