Struct gimli::read::FileEntry [−][src]
An entry in the LineProgramHeader
’s file_names
set.
Implementations
impl<R, Offset> FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn path_name(&self) -> AttributeValue<R, Offset>
[src]
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.
pub fn directory_index(&self) -> u64
[src]
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.
pub fn directory(
&self,
header: &LineProgramHeader<R>
) -> Option<AttributeValue<R, Offset>>
[src]
&self,
header: &LineProgramHeader<R>
) -> Option<AttributeValue<R, Offset>>
Get this file’s directory.
A directory index of 0 corresponds to the compilation unit directory.
pub fn timestamp(&self) -> u64
[src]
The implementation-defined time of last modification of the file, or 0 if not available.
pub fn size(&self) -> u64
[src]
The size of the file in bytes, or 0 if not available.
pub fn md5(&self) -> &[u8; 16]
[src]
A 16-byte MD5 digest of the file contents.
Only valid if LineProgramHeader::file_has_md5
returns true
.
Trait Implementations
impl<R: Clone, Offset: Clone> Clone for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn clone(&self) -> FileEntry<R, Offset>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Copy, Offset: Copy> Copy for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Debug, Offset: Debug> Debug for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Eq, Offset: Eq> Eq for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: PartialEq, Offset: PartialEq> PartialEq<FileEntry<R, Offset>> for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn eq(&self, other: &FileEntry<R, Offset>) -> bool
[src]
fn ne(&self, other: &FileEntry<R, Offset>) -> bool
[src]
impl<R, Offset> StructuralEq for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for FileEntry<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> Send for FileEntry<R, Offset> where
Offset: Send,
R: Send,
Offset: Send,
R: Send,
impl<R, Offset> Sync for FileEntry<R, Offset> where
Offset: Sync,
R: Sync,
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for FileEntry<R, Offset> where
Offset: Unpin,
R: Unpin,
Offset: Unpin,
R: Unpin,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,