Struct rustc_const_eval::interpret::eval_context::SpanGuard
source · struct SpanGuard(Span, PhantomData<*const u8>);
Tuple Fields
0: Span
1: PhantomData<*const u8>
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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