pub struct DebugSourceLocation {
pub file: Option<String>,
pub range_start: u32,
pub range_len: u32,
}Expand description
The result of resolving a DebugPosition to source via the program’s
DebugInfo section (D6, docs/debugger-spec.md §2.2) — see
crate::Program::resolve_debug_position (D9, issue #3187). This is
the “program → source” half of the studio’s Location protocol
(docs/studio-shell-spec.md §6.1).
Fields§
§file: Option<String>Project-root-relative source path, or None for the reserved
synthetic sentinel file (compiler-generated content with no author
source).
range_start: u32Absolute source byte offset within file.
range_len: u32Length in bytes of the source range (range_start + range_len is
the exclusive end).
Trait Implementations§
Source§impl Clone for DebugSourceLocation
impl Clone for DebugSourceLocation
Source§fn clone(&self) -> DebugSourceLocation
fn clone(&self) -> DebugSourceLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugSourceLocation
impl Debug for DebugSourceLocation
impl Eq for DebugSourceLocation
Source§impl PartialEq for DebugSourceLocation
impl PartialEq for DebugSourceLocation
impl StructuralPartialEq for DebugSourceLocation
Auto Trait Implementations§
impl Freeze for DebugSourceLocation
impl RefUnwindSafe for DebugSourceLocation
impl Send for DebugSourceLocation
impl Sync for DebugSourceLocation
impl Unpin for DebugSourceLocation
impl UnsafeUnpin for DebugSourceLocation
impl UnwindSafe for DebugSourceLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more