[][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 (../).


name: &'data [u8]

The file's basename.

dir: &'data [u8]

Path to the file.


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> 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> PartialEq<FileInfo<'data>> for FileInfo<'data>[src]

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

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

Auto Trait Implementations

impl<'data> Unpin for FileInfo<'data>

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

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

impl<'data> RefUnwindSafe for FileInfo<'data>

impl<'data> UnwindSafe for FileInfo<'data>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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