pub struct Local {
pub name: String,
pub ty: Option<usize>,
pub decl: Option<Place>,
pub spot: Spot,
}Expand description
One local the program declared.
A parameter is not here even when it has a place. It is already a child of the subprogram, from
the signature, and a second entry for it would be a second variable of the same name. What it
gets instead is Param::spot.
Fields§
§name: StringIts name, as the C program spelled it.
ty: Option<usize>Which of the unit’s types it is, and None when this compiler
cannot yet say, which is the case Global::ty explains.
decl: Option<Place>Where it was declared, and nothing when that is not known.
spot: SpotWhere in the machine it is, over the addresses of the function it is in.
Trait Implementations§
impl Eq for Local
impl StructuralPartialEq for Local
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl Send for Local
impl Sync for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.