Struct gimli::write::DwarfUnit [−][src]
Writable DWARF information for a single unit.
Fields
unit: Unit
A unit. This is primarily stored in the .debug_info
section,
but also contains information that is stored in other sections.
line_strings: LineStringTable
A table of strings that will be stored in the .debug_line_str
section.
strings: StringTable
A table of strings that will be stored in the .debug_str
section.
Implementations
impl DwarfUnit
[src]
pub fn new(encoding: Encoding) -> Self
[src]
Create a new DwarfUnit
.
Note: you should set self.unit.line_program
after creation.
This cannot be done earlier because it may need to reference
self.line_strings
.
pub fn write<W: Writer>(&mut self, sections: &mut Sections<W>) -> Result<()>
[src]
Write the DWARf information to the given sections.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DwarfUnit
impl Send for DwarfUnit
impl Sync for DwarfUnit
impl Unpin for DwarfUnit
impl UnwindSafe for DwarfUnit
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>,