pub struct Variable { /* private fields */ }
Implementations§
§impl Variable
impl Variable
pub fn set_addr(&mut self, addr: u64) -> &mut Self
pub fn set_addr(&mut self, addr: u64) -> &mut Self
Set the global address of this variable. Setting this address is only
revelant in the case of a static global variable. For stack variable, you
should use Variable::set_stack_offset
.
This function set the DW_AT_location
attribute
pub fn set_stack_offset(&mut self, addr: u64) -> &mut Self
pub fn set_stack_offset(&mut self, addr: u64) -> &mut Self
Set the stack offset of this variable.
This function set the DW_AT_location
attribute
pub fn set_external(&mut self) -> &mut Self
pub fn set_external(&mut self) -> &mut Self
Mark this variable as imported
Auto Trait Implementations§
impl !RefUnwindSafe for Variable
impl !Send for Variable
impl !Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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