pub struct ScopeMetadata {
pub label: &'static str,
pub depth: usize,
pub full_path: String,
pub ancestors: Vec<&'static str>,
pub parent_label: Option<&'static str>,
}Expand description
Metadata about a labeled scope for tracing and debugging.
Fields§
§label: &'static strThe label of this scope
depth: usizeThe depth in the hierarchy (0 for root)
full_path: StringThe full hierarchical path
ancestors: Vec<&'static str>All ancestor labels from root to this scope
parent_label: Option<&'static str>The parent scope’s label, if any
Trait Implementations§
Source§impl Clone for ScopeMetadata
impl Clone for ScopeMetadata
Source§fn clone(&self) -> ScopeMetadata
fn clone(&self) -> ScopeMetadata
Returns a duplicate 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 Debug for ScopeMetadata
impl Debug for ScopeMetadata
Source§impl PartialEq for ScopeMetadata
impl PartialEq for ScopeMetadata
impl StructuralPartialEq for ScopeMetadata
Auto Trait Implementations§
impl Freeze for ScopeMetadata
impl RefUnwindSafe for ScopeMetadata
impl Send for ScopeMetadata
impl Sync for ScopeMetadata
impl Unpin for ScopeMetadata
impl UnwindSafe for ScopeMetadata
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