[][src]Struct gimli::read::FileEntry

pub struct FileEntry<R, Offset = <R as Reader>::Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
{ /* fields omitted */ }

An entry in the LineProgramHeader's file_names set.

Implementations

impl<R, Offset> FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

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]

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]

impl<R: Copy, Offset: Copy> Copy for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: Debug, Offset: Debug> Debug for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: Eq, Offset: Eq> Eq for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: PartialEq, Offset: PartialEq> PartialEq<FileEntry<R, Offset>> for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R, Offset> StructuralEq for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R, Offset> StructuralPartialEq for FileEntry<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.