struct SpanGuard(Span, PhantomData<*const u8>);

Tuple Fields

0: Span1: PhantomData<*const u8>

Implementations

By default a SpanGuard does nothing.

If a span is entered, we exit the previous span (if any, normally none) and enter the new span. This is mainly so we don’t have to use Option for the tracing_span field of Frame by creating a dummy span to being with and then entering it once the frame has been pushed.

Trait Implementations

Executes the destructor for this type. Read more

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 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.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes