Struct gimli::write::Unit [−][src]
A unit’s debugging information.
Fields
line_program: LineProgram
The line number program for this unit.
ranges: RangeListTable
A table of range lists used by this unit.
locations: LocationListTable
A table of location lists used by this unit.
Implementations
impl Unit
[src]
pub fn new(encoding: Encoding, line_program: LineProgram) -> Self
[src]
Create a new Unit
.
pub fn encoding(&self) -> Encoding
[src]
Return the encoding parameters for this unit.
pub fn version(&self) -> u16
[src]
Return the DWARF version for this unit.
pub fn address_size(&self) -> u8
[src]
Return the address size in bytes for this unit.
pub fn format(&self) -> Format
[src]
Return the DWARF format for this unit.
pub fn count(&self) -> usize
[src]
Return the number of DebuggingInformationEntry
s created for this unit.
This includes entries that no longer have a parent.
pub fn root(&self) -> UnitEntryId
[src]
Return the id of the root entry.
pub fn add(&mut self, parent: UnitEntryId, tag: DwTag) -> UnitEntryId
[src]
Add a new DebuggingInformationEntry
to this unit and return its id.
The parent
must be within the same unit.
Panics
Panics if parent
is invalid.
pub fn get(&self, id: UnitEntryId) -> &DebuggingInformationEntry
[src]
pub fn get_mut(&mut self, id: UnitEntryId) -> &mut DebuggingInformationEntry
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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>,