Struct lief::dwarf::editor::function::LexicalBlock
pub struct LexicalBlock { /* private fields */ }
Expand description
This structure mirrors the DW_TAG_lexical_block
DWARF tag
Implementations§
§impl LexicalBlock
impl LexicalBlock
pub fn add_name(&mut self, name: &str) -> &mut Self
pub fn add_name(&mut self, name: &str) -> &mut Self
Create a DW_AT_name
entry to associate a name to this entry
pub fn add_description(&mut self, description: &str) -> &mut Self
pub fn add_description(&mut self, description: &str) -> &mut Self
Create a DW_AT_description
entry with the description
provided in parameter.
pub fn add_block(&mut self, start: u64, end: u64) -> Option<LexicalBlock>
pub fn add_block(&mut self, start: u64, end: u64) -> Option<LexicalBlock>
Create a sub-block with the given low/high addresses.
pub fn add_block_from_range(&mut self, ranges: &[Range]) -> Option<LexicalBlock>
pub fn add_block_from_range(&mut self, ranges: &[Range]) -> Option<LexicalBlock>
Create a sub-block with the given range of addresses.
Auto Trait Implementations§
impl !RefUnwindSafe for LexicalBlock
impl !Send for LexicalBlock
impl !Sync for LexicalBlock
impl Unpin for LexicalBlock
impl UnwindSafe for LexicalBlock
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