pub struct Scope<'s> {
pub id: ScopeId,
pub record: ScopeRecord<'s>,
pub child_begin_position: u64,
pub child_end_position: u64,
pub next_sibling_position: u64,
}
Expand description
TODO: Improve encapsulation. Used when parsing a Stream.
Fields§
§id: ScopeId
Unique identifier for the profile scope.
More detailed scope information can be requested via FrameView::scope_collection()
.
record: ScopeRecord<'s>
Some dynamic data that is passed into the profiler scope.
child_begin_position: u64
Stream offset for first child.
child_end_position: u64
Stream offset after last child.
next_sibling_position: u64
Stream offset for next sibling (if any).
Trait Implementations§
source§impl<'s> PartialEq for Scope<'s>
impl<'s> PartialEq for Scope<'s>
impl<'s> Copy for Scope<'s>
impl<'s> Eq for Scope<'s>
impl<'s> StructuralPartialEq for Scope<'s>
Auto Trait Implementations§
impl<'s> Freeze for Scope<'s>
impl<'s> RefUnwindSafe for Scope<'s>
impl<'s> Send for Scope<'s>
impl<'s> Sync for Scope<'s>
impl<'s> Unpin for Scope<'s>
impl<'s> UnwindSafe for Scope<'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