Struct pdb::CrossModuleImports[][src]

pub struct CrossModuleImports<'a> { /* fields omitted */ }

Provides efficient access to imported types and IDs from other modules.

This can be used to resolve cross module references. See ItemIndex::is_cross_module for more information.

Implementations

impl<'a> CrossModuleImports<'a>[src]

pub fn resolve_import<I>(&self, index: I) -> Result<CrossModuleRef<I>> where
    I: ItemIndex
[src]

Resolves the referenced module and local index for the index.

The given index must be a cross module reference. Use ItemIndex::is_cross_module to check this before invoking this function. If successful, this function returns a reference to the module that declares the type, as well as the local index of the type in that module.

Errors

  • Error::NotACrossModuleRef if the given index is already a global index and not a cross module reference.
  • Error::CrossModuleRefNotFound if the cross module reference points to a module or local index that is not indexed by this import table.

Trait Implementations

impl<'a> Clone for CrossModuleImports<'a>[src]

impl<'a> Debug for CrossModuleImports<'a>[src]

impl<'a> Default for CrossModuleImports<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CrossModuleImports<'a>

impl<'a> Send for CrossModuleImports<'a>

impl<'a> Sync for CrossModuleImports<'a>

impl<'a> Unpin for CrossModuleImports<'a>

impl<'a> UnwindSafe for CrossModuleImports<'a>

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.