[]Struct symbolic::debuginfo::pdb::pdb::CrossModuleExports

pub struct CrossModuleExports { /* fields omitted */ }

A table of exports declared by this module.

Other modules can import types and ids from this module by using cross module references.

Implementations

impl CrossModuleExports

pub fn len(&self) -> usize

Returns the number of exported types or ids from this module.

pub fn is_empty(&self) -> bool

Returns true if this module does not export types or ids.

pub fn exports(&self) -> CrossModuleExportIter<'_>

Returns an iterator over all cross scope exports.

pub fn resolve_import<I>(
    &self,
    local_index: Local<I>
) -> Result<Option<I>, Error> where
    I: ItemIndex

Resolves the global index of the given cross module import's local index.

The global index can be used to retrieve items from the [TypeInformation] or [IdInformation] streams. If the given local index is not listed in the export list, this function returns Ok(None).

Trait Implementations

impl Clone for CrossModuleExports

impl Debug for CrossModuleExports

impl Default for CrossModuleExports

Auto Trait Implementations

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.