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,
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