pub enum ScopeType {
Function,
Named,
}Expand description
Scopes are identified by user-provided name while functions are identified by the function name.
Variants§
Function
The scope is a function profile scope generated by puffin::profile_function!.
Named
The named scope is a profile scope inside a function generated by puffin::profile_scope! or registered manually.
It is identified by a unique name.
Implementations§
Trait Implementations§
source§impl Ord for ScopeType
impl Ord for ScopeType
source§impl PartialEq for ScopeType
impl PartialEq for ScopeType
source§impl PartialOrd for ScopeType
impl PartialOrd for ScopeType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ScopeType
impl StructuralPartialEq for ScopeType
Auto Trait Implementations§
impl Freeze for ScopeType
impl RefUnwindSafe for ScopeType
impl Send for ScopeType
impl Sync for ScopeType
impl Unpin for ScopeType
impl UnwindSafe for ScopeType
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