pub struct MirLocal {
pub function: String,
pub name: String,
pub type_name: String,
pub mir_line: usize,
}Expand description
One local binding sighting extracted from a MIR artifact. 从 MIR artifact 中提取到的一条局部绑定观测。
Fields§
§function: StringFunction symbol owning the local. 拥有该局部变量的函数符号。
name: StringLocal binding name as written in MIR, such as _1.
MIR 中书写的局部绑定名,例如 _1。
type_name: StringDeclared type text of the binding. 该绑定的声明类型文本。
mir_line: usize1-based position of this record within the parsed MIR, not a source line. 该记录在已解析 MIR 内以 1 起始的位置,不是源码行号。
Trait Implementations§
impl Eq for MirLocal
impl StructuralPartialEq for MirLocal
Auto Trait Implementations§
impl Freeze for MirLocal
impl RefUnwindSafe for MirLocal
impl Send for MirLocal
impl Sync for MirLocal
impl Unpin for MirLocal
impl UnsafeUnpin for MirLocal
impl UnwindSafe for MirLocal
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