[][src]Struct symbolic_debuginfo::FileInfo

pub struct FileInfo<'data> {
    pub name: &'data [u8],
    pub dir: &'data [u8],
}

File information refered by LineInfo comprising a directory and name.

The file path is usually relative to a compilation directory. It might contain parent directory segments (../).

Fields

name: &'data [u8]

The file's basename.

dir: &'data [u8]

Path to the file.

Methods

impl<'data> FileInfo<'data>[src]

pub fn name_str(&self) -> Cow<'data, str>[src]

The file name as UTF-8 string.

pub fn dir_str(&self) -> Cow<'data, str>[src]

Path to the file relative to the compilation directory.

pub fn path_str(&self) -> String[src]

The full path to the file, relative to the compilation directory.

Trait Implementations

impl<'data> PartialEq<FileInfo<'data>> for FileInfo<'data>[src]

impl<'data> Clone for FileInfo<'data>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'data> Eq for FileInfo<'data>[src]

impl<'_> Debug for FileInfo<'_>[src]

Auto Trait Implementations

impl<'data> Send for FileInfo<'data>

impl<'data> Sync for FileInfo<'data>

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T