pub struct InferredVariable {
pub name: String,
pub ty: String,
pub kind: VariableKind,
pub slot: Option<usize>,
pub words: usize,
}Expand description
A variable of the executing function, with the stack slot inferred for it.
Fields§
§name: String§ty: StringThe declared type, with its data location.
kind: VariableKind§slot: Option<usize>The slot, counted from the bottom of the stack, of the variable’s first word;
None when the variable is in scope but its frame could not be placed.
words: usizeHow many stack words the variable takes: two for a calldata slice, whose words
are its offset and its length, one for everything else.
Trait Implementations§
Source§impl Clone for InferredVariable
impl Clone for InferredVariable
Source§impl Debug for InferredVariable
impl Debug for InferredVariable
impl Eq for InferredVariable
Source§impl PartialEq for InferredVariable
impl PartialEq for InferredVariable
impl StructuralPartialEq for InferredVariable
Auto Trait Implementations§
impl Freeze for InferredVariable
impl RefUnwindSafe for InferredVariable
impl Send for InferredVariable
impl Sync for InferredVariable
impl Unpin for InferredVariable
impl UnsafeUnpin for InferredVariable
impl UnwindSafe for InferredVariable
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