Struct gimli::write::DebuggingInformationEntry [−][src]
pub struct DebuggingInformationEntry { /* fields omitted */ }A Debugging Information Entry (DIE).
DIEs have a set of attributes and optionally have children DIEs as well.
DIEs form a tree without any cycles. This is enforced by specifying the parent when creating a DIE, and disallowing changes of parent.
Implementations
impl DebuggingInformationEntry[src]
impl DebuggingInformationEntry[src]pub fn id(&self) -> UnitEntryId[src]
Return the id of this entry.
pub fn parent(&self) -> Option<UnitEntryId>[src]
Return the parent of this entry.
pub fn tag(&self) -> DwTag[src]
Return the tag of this entry.
pub fn sibling(&self) -> bool[src]
Return true if a DW_AT_sibling attribute will be emitted.
pub fn set_sibling(&mut self, sibling: bool)[src]
Set whether a DW_AT_sibling attribute will be emitted.
The attribute will only be emitted if the DIE has children.
pub fn attrs(&self) -> Iter<'_, Attribute>[src]
Iterate over the attributes of this entry.
pub fn attrs_mut(&mut self) -> IterMut<'_, Attribute>[src]
Iterate over the attributes of this entry for modification.
pub fn get(&self, name: DwAt) -> Option<&AttributeValue>[src]
Get an attribute.
pub fn get_mut(&mut self, name: DwAt) -> Option<&mut AttributeValue>[src]
Get an attribute for modification.
pub fn set(&mut self, name: DwAt, value: AttributeValue)[src]
Set an attribute.
Replaces any existing attribute with the same name.
Panics
Panics if name is DW_AT_sibling. Use set_sibling instead.
pub fn delete(&mut self, name: DwAt)[src]
Delete an attribute.
Replaces any existing attribute with the same name.
pub fn children(&self) -> Iter<'_, UnitEntryId>[src]
Iterate over the children of this entry.
Note: use Unit::add to add a new child to this entry.