Struct rustc_codegen_ssa::mir::debuginfo::DebugScope
source · pub struct DebugScope<S, L> {
pub dbg_scope: S,
pub inlined_at: Option<L>,
pub file_start_pos: BytePos,
pub file_end_pos: BytePos,
}
Fields§
§dbg_scope: S
§inlined_at: Option<L>
Call site location, if this scope was inlined from another function.
file_start_pos: BytePos
§file_end_pos: BytePos
Implementations§
source§impl<'tcx, S: Copy, L: Copy> DebugScope<S, L>
impl<'tcx, S: Copy, L: Copy> DebugScope<S, L>
sourcepub fn adjust_dbg_scope_for_span<Cx: CodegenMethods<'tcx, DIScope = S, DILocation = L>>(
&self,
cx: &Cx,
span: Span
) -> S
pub fn adjust_dbg_scope_for_span<Cx: CodegenMethods<'tcx, DIScope = S, DILocation = L>>(
&self,
cx: &Cx,
span: Span
) -> S
DILocations inherit source file name from the parent DIScope. Due to macro expansions it may so happen that the current span belongs to a different file than the DIScope corresponding to span’s containing source scope. If so, we need to create a DIScope “extension” into that file.
Trait Implementations§
source§impl<S: Clone, L: Clone> Clone for DebugScope<S, L>
impl<S: Clone, L: Clone> Clone for DebugScope<S, L>
source§fn clone(&self) -> DebugScope<S, L>
fn clone(&self) -> DebugScope<S, L>
Returns a copy 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 moreimpl<S: Copy, L: Copy> Copy for DebugScope<S, L>
Auto Trait Implementations§
impl<S, L> RefUnwindSafe for DebugScope<S, L>where
L: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, L> Send for DebugScope<S, L>where
L: Send,
S: Send,
impl<S, L> Sync for DebugScope<S, L>where
L: Sync,
S: Sync,
impl<S, L> Unpin for DebugScope<S, L>where
L: Unpin,
S: Unpin,
impl<S, L> UnwindSafe for DebugScope<S, L>where
L: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.