Struct rustc_const_eval::interpret::eval_context::SpanGuard
source · struct SpanGuard(Span, PhantomData<*const u8>);
Tuple Fields§
§0: Span
§1: PhantomData<*const u8>
Implementations§
source§impl SpanGuard
impl SpanGuard
sourcefn enter(&mut self, span: Span)
fn enter(&mut self, span: Span)
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§
Auto Trait Implementations§
impl !RefUnwindSafe for SpanGuard
impl !Send for SpanGuard
impl !Sync for SpanGuard
impl Unpin for SpanGuard
impl !UnwindSafe for SpanGuard
Blanket Implementations§
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