[−]Struct symbolic::debuginfo::pdb::pdb::CrossModuleImports
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>
pub fn resolve_import<I>(&self, index: I) -> Result<CrossModuleRef<I>, Error> where
I: ItemIndex,
I: ItemIndex,
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>
pub fn clone(&self) -> CrossModuleImports<'a>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for CrossModuleImports<'a>
impl<'a> Default for CrossModuleImports<'a>
pub fn default() -> CrossModuleImports<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CrossModuleImports<'a>
[src]
impl<'a> Send for CrossModuleImports<'a>
[src]
impl<'a> Sync for CrossModuleImports<'a>
[src]
impl<'a> Unpin for CrossModuleImports<'a>
[src]
impl<'a> UnwindSafe for CrossModuleImports<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,