Struct gimli::write::DebuggingInformationEntry [−][src]
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]
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DebuggingInformationEntry
impl Send for DebuggingInformationEntry
impl Sync for DebuggingInformationEntry
impl Unpin for DebuggingInformationEntry
impl UnwindSafe for DebuggingInformationEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,