[][src]Struct ddbug_parser::FileHash

pub struct FileHash<'input> {
    pub file: &'input File<'input>,
    pub functions_by_address: HashMap<u64, &'input Function<'input>>,
    pub functions_by_offset: HashMap<FunctionOffset, &'input Function<'input>>,
    pub types: HashMap<TypeOffset, &'input Type<'input>>,
    // some fields omitted
}

An index of functions and types within a file.

Fields

file: &'input File<'input>

The file being indexed.

functions_by_address: HashMap<u64, &'input Function<'input>>

All functions by address.

functions_by_offset: HashMap<FunctionOffset, &'input Function<'input>>

All functions by offset.

types: HashMap<TypeOffset, &'input Type<'input>>

All types by offset.

Implementations

impl<'input> FileHash<'input>[src]

pub fn new(file: &'input File<'input>) -> Self[src]

Create a new FileHash for the given File.

Auto Trait Implementations

impl<'input> !RefUnwindSafe for FileHash<'input>[src]

impl<'input> !Send for FileHash<'input>[src]

impl<'input> !Sync for FileHash<'input>[src]

impl<'input> Unpin for FileHash<'input>[src]

impl<'input> !UnwindSafe for FileHash<'input>[src]

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, 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.