Struct stable_mir::mir::body::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§fn eq(&self, other: &VarDebugInfo) -> bool
fn eq(&self, other: &VarDebugInfo) -> bool
self
and other
values to be equal, and is used
by ==
.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
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: 184 bytes