pub fn enter<F: FnOnce() -> T, T>(&mut self, f: F) -> T {
        self.log(format_args!("-> {}", self.meta.name));
        let result = match self.inner.take() {
            Some(inner) => {
                let guard = inner.enter();
                let result = f();
                self.inner = Some(guard.exit());
                result
            }
            None => f(),
        };
        self.log(format_args!("<- {}", self.meta.name));
        result
    }
/// Executes the given function in the context of this span.
///
/// If this span is enabled, then this function enters the span, invokes
/// and then exits the span. If the span is disabled, `f` will still be
/// invoked, but in the context of the currently-executing span (if there is
/// one).
///
/// Returns the result of evaluating `f`.
Executes the given function in the context of this span.
If this span is enabled, then this function enters the span, invokes
and then exits the span. If the span is disabled, `f` will still be
invoked, but in the context of the currently-executing span (if there is
one).

Returns the result of evaluating `f`.
Executes the given function in the context of this span . If this span is enabled then this function enters the span invokes and then exits the span . If the span is disabled ` f ` will still be invoked but in the context of the currently - executing span ( if there is one ) . Returns the result of evaluating ` f ` .
pub fn enter<F: FnOnce() -> T, T>(&mut self, f: F) -> T {
        self.log(format_args!("-> {}", self.meta.name));
        let result = match self.inner.take() {
            Some(inner) => {
                let guard = inner.enter();
                let result = f();
                self.inner = Some(guard.exit());
                result
            }
            None => f(),
        };
        self.log(format_args!("<- {}", self.meta.name));
        result
    }
pub fn enter < F : FnOnce ( ) -> T , T > ( & mut self , f : F ) -> T { self . log ( format_args ! ( " " self meta name ) ) ; let result = match self . inner . take ( ) { Some ( inner ) => { let guard = inner . enter ( ) ; let result = f ( ) ; self . inner = Some ( guard . exit ( ) ) ; result } None => f ( ) , } ; self . log ( format_args ! ( " " self meta name ) ) ; result }
Executes the given function in the context of this span.
Executes the given function in the context of this span .
&mut self
f
F