pub struct LocalDecl {
pub name: String,
pub ty: Type,
pub kind: LocalKind,
}Expand description
One let name: type; entry at the head of a function body.
Kinds:
- Stack —
let var_4: u32;— backed by a stack slot at[ebp-4](the name carries the offset as its hex suffix). - Register —
let eax: u32 @reg;— backed by a CPU register; the name is the canonical x86 register mnemonic.
The type captures the largest access size seen at the slot /
register in the function. Multiple-width accesses (mov al, [ebp-1]; mov dword ptr [ebp-4], …) pick the widest.
Fields§
§name: String§ty: Type§kind: LocalKindTrait Implementations§
impl Eq for LocalDecl
impl StructuralPartialEq for LocalDecl
Auto Trait Implementations§
impl Freeze for LocalDecl
impl RefUnwindSafe for LocalDecl
impl Send for LocalDecl
impl Sync for LocalDecl
impl Unpin for LocalDecl
impl UnsafeUnpin for LocalDecl
impl UnwindSafe for LocalDecl
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