Struct gimli::FileEntry [−][src]
pub struct FileEntry<R: Reader> { /* fields omitted */ }
An entry in the LineNumberProgramHeader's file_names set.
Methods
impl<R: Reader> FileEntry<R>[src]
impl<R: Reader> FileEntry<R>pub fn path_name(&self) -> R[src]
pub fn path_name(&self) -> RA 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.
pub fn directory_index(&self) -> u64[src]
pub fn directory_index(&self) -> u64An 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.
pub fn directory(&self, header: &LineNumberProgramHeader<R>) -> Option<R>[src]
pub fn directory(&self, header: &LineNumberProgramHeader<R>) -> Option<R>Get this file's directory.
A directory index of 0 corresponds to the compilation unit directory.
pub fn last_modification(&self) -> u64[src]
pub fn last_modification(&self) -> u64"An unsigned LEB128 number representing the time of last modification of the file, or 0 if not available."
pub fn length(&self) -> u64[src]
pub fn length(&self) -> u64"An unsigned LEB128 number representing the length in bytes of the file, or 0 if not available."
Trait Implementations
impl<R: Copy + Reader> Copy for FileEntry<R>[src]
impl<R: Copy + Reader> Copy for FileEntry<R>impl<R: Clone + Reader> Clone for FileEntry<R>[src]
impl<R: Clone + Reader> Clone for FileEntry<R>fn clone(&self) -> FileEntry<R>[src]
fn clone(&self) -> FileEntry<R>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<R: Debug + Reader> Debug for FileEntry<R>[src]
impl<R: Debug + Reader> Debug for FileEntry<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: PartialEq + Reader> PartialEq for FileEntry<R>[src]
impl<R: PartialEq + Reader> PartialEq for FileEntry<R>fn eq(&self, other: &FileEntry<R>) -> bool[src]
fn eq(&self, other: &FileEntry<R>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FileEntry<R>) -> bool[src]
fn ne(&self, other: &FileEntry<R>) -> boolThis method tests for !=.
impl<R: Eq + Reader> Eq for FileEntry<R>[src]
impl<R: Eq + Reader> Eq for FileEntry<R>