Struct stable_mir::mir::VarDebugInfo
source · pub struct VarDebugInfo {
pub name: Symbol,
pub source_info: SourceInfo,
pub composite: Option<VarDebugInfoFragment>,
pub value: VarDebugInfoContents,
pub argument_index: Option<u16>,
}
Expand description
Debug information pertaining to a user variable.
Fields§
§name: Symbol
The variable name.
source_info: SourceInfo
Source info of the user variable, including the scope within which the variable is visible (to debuginfo).
composite: Option<VarDebugInfoFragment>
The user variable’s data is split across several fragments,
each described by a VarDebugInfoFragment
.
value: VarDebugInfoContents
Where the data for this user variable is to be found.
argument_index: Option<u16>
When present, indicates what argument number this variable is in the function that it originated from (starting from 1). Note, if MIR inlining is enabled, then this is the argument number in the original function before it was inlined.
Implementations§
Trait Implementations§
source§impl Clone for VarDebugInfo
impl Clone for VarDebugInfo
source§fn clone(&self) -> VarDebugInfo
fn clone(&self) -> VarDebugInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VarDebugInfo
impl Debug for VarDebugInfo
source§impl PartialEq for VarDebugInfo
impl PartialEq for VarDebugInfo
source§impl Serialize for VarDebugInfo
impl Serialize for VarDebugInfo
impl Eq for VarDebugInfo
impl StructuralPartialEq for VarDebugInfo
Auto Trait Implementations§
impl Freeze for VarDebugInfo
impl RefUnwindSafe for VarDebugInfo
impl Send for VarDebugInfo
impl Sync for VarDebugInfo
impl Unpin for VarDebugInfo
impl UnwindSafe for VarDebugInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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: 200 bytes