Struct symbolic::debuginfo::dwarf::gimli::DebugLineStr [−]
pub struct DebugLineStr<R> { /* fields omitted */ }
The DebugLineStr
struct represents the DWARF strings
found in the .debug_line_str
section.
Implementations
impl<R> DebugLineStr<R> where
R: Reader,
impl<R> DebugLineStr<R> where
R: Reader,
impl<T> DebugLineStr<T>
impl<T> DebugLineStr<T>
pub fn borrow<'a, F, R>(&'a self, borrow: F) -> DebugLineStr<R> where
F: FnMut(&'a T) -> R,
F: FnMut(&'a T) -> R,
Create a DebugLineStr
section that references the data in self
.
This is useful when R
implements Reader
but T
does not.
Example Usage
// Read the DWARF section into a `Vec` with whatever object loader you're using. let owned_section: gimli::DebugLineStr<Vec<u8>> = load_section(); // Create a reference to the DWARF section. let section = owned_section.borrow(|section| { gimli::EndianSlice::new(§ion, gimli::LittleEndian) });
Trait Implementations
impl<R> Clone for DebugLineStr<R> where
R: Clone,
impl<R> Clone for DebugLineStr<R> where
R: Clone,
pub fn clone(&self) -> DebugLineStr<R>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R> Copy for DebugLineStr<R> where
R: Copy,
impl<R> Copy for DebugLineStr<R> where
R: Copy,
impl<R> Debug for DebugLineStr<R> where
R: Debug,
impl<R> Debug for DebugLineStr<R> where
R: Debug,
impl<R> Default for DebugLineStr<R> where
R: Default,
impl<R> Default for DebugLineStr<R> where
R: Default,
pub fn default() -> DebugLineStr<R>
impl<R> From<R> for DebugLineStr<R>
impl<R> From<R> for DebugLineStr<R>
pub fn from(section: R) -> DebugLineStr<R>
impl<R> Section<R> for DebugLineStr<R>
impl<R> Section<R> for DebugLineStr<R>
pub fn id() -> SectionId
pub fn reader(&self) -> &R
pub fn section_name() -> &'static str
pub fn dwo_section_name() -> Option<&'static str>
pub fn load<F, E>(f: F) -> Result<Self, E> where
F: FnOnce(SectionId) -> Result<R, E>,
F: FnOnce(SectionId) -> Result<R, E>,
pub fn lookup_offset_id(
&self,
id: ReaderOffsetId
) -> Option<(SectionId, <R as Reader>::Offset)> where
R: Reader,
&self,
id: ReaderOffsetId
) -> Option<(SectionId, <R as Reader>::Offset)> where
R: Reader,
Auto Trait Implementations
impl<R> RefUnwindSafe for DebugLineStr<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for DebugLineStr<R> where
R: RefUnwindSafe,
impl<R> Send for DebugLineStr<R> where
R: Send,
impl<R> Send for DebugLineStr<R> where
R: Send,
impl<R> Sync for DebugLineStr<R> where
R: Sync,
impl<R> Sync for DebugLineStr<R> where
R: Sync,
impl<R> Unpin for DebugLineStr<R> where
R: Unpin,
impl<R> Unpin for DebugLineStr<R> where
R: Unpin,
impl<R> UnwindSafe for DebugLineStr<R> where
R: UnwindSafe,
impl<R> UnwindSafe for DebugLineStr<R> where
R: UnwindSafe,