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
sourceimpl<'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
sourceimpl<S: Clone, L: Clone> Clone for DebugScope<S, L>
impl<S: Clone, L: Clone> Clone for DebugScope<S, L>
sourcefn clone(&self) -> DebugScope<S, L>
fn clone(&self) -> DebugScope<S, L>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<S: Debug, L: Debug> Debug for DebugScope<S, L>
impl<S: Debug, L: Debug> Debug for DebugScope<S, L>
impl<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
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.