[][src]Struct gimli::write::DebuggingInformationEntry

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]

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

impl Debug for DebuggingInformationEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.