pub struct FileEntry<R, Offset = <R as Reader>::Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,{ /* private fields */ }
Expand description
An entry in the LineProgramHeader
’s file_names
set.
Implementations§
source§impl<R, Offset> FileEntry<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> FileEntry<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
sourcepub fn path_name(&self) -> AttributeValue<R, Offset>
pub fn path_name(&self) -> AttributeValue<R, Offset>
A slice containing the full or relative path name of a source file. If the entry contains a file name or a relative path name, the file is located relative to either the compilation directory (as specified by the DW_AT_comp_dir attribute given in the compilation unit) or one of the directories in the include_directories section.
sourcepub fn directory_index(&self) -> u64
pub fn directory_index(&self) -> u64
An unsigned LEB128 number representing the directory index of the directory in which the file was found.
…
The directory index represents an entry in the include_directories section of the line number program header. The index is 0 if the file was found in the current directory of the compilation, 1 if it was found in the first directory in the include_directories section, and so on. The directory index is ignored for file names that represent full path names.
sourcepub fn directory(
&self,
header: &LineProgramHeader<R>
) -> Option<AttributeValue<R, Offset>>
pub fn directory(
&self,
header: &LineProgramHeader<R>
) -> Option<AttributeValue<R, Offset>>
Get this file’s directory.
A directory index of 0 corresponds to the compilation unit directory.
Trait Implementations§
source§impl<R, Offset> Clone for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Clone,
Offset: ReaderOffset + Clone,
impl<R, Offset> Clone for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Clone,
Offset: ReaderOffset + Clone,
source§impl<R, Offset> Debug for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Debug,
Offset: ReaderOffset + Debug,
impl<R, Offset> Debug for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Debug,
Offset: ReaderOffset + Debug,
source§impl<R, Offset> PartialEq<FileEntry<R, Offset>> for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + PartialEq,
Offset: ReaderOffset + PartialEq,
impl<R, Offset> PartialEq<FileEntry<R, Offset>> for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + PartialEq,
Offset: ReaderOffset + PartialEq,
impl<R, Offset> Copy for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Copy,
Offset: ReaderOffset + Copy,
impl<R, Offset> Eq for FileEntry<R, Offset>where
R: Reader<Offset = Offset> + Eq,
Offset: ReaderOffset + Eq,
impl<R, Offset> StructuralEq for FileEntry<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for FileEntry<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations§
impl<R, Offset> RefUnwindSafe for FileEntry<R, Offset>where
Offset: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, Offset> Send for FileEntry<R, Offset>where
Offset: Send,
R: Send,
impl<R, Offset> Sync for FileEntry<R, Offset>where
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for FileEntry<R, Offset>where
Offset: Unpin,
R: Unpin,
impl<R, Offset> UnwindSafe for FileEntry<R, Offset>where
Offset: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.