pub struct Exports { /* private fields */ }Expand description
Provides the exports for an instance.
Implementations§
Source§impl Exports
impl Exports
Sourcepub fn root(&self) -> &ExportInstance
pub fn root(&self) -> &ExportInstance
Gets the root instance.
Sourcepub fn instance(&self, name: &InterfaceIdentifier) -> Option<&ExportInstance>
pub fn instance(&self, name: &InterfaceIdentifier) -> Option<&ExportInstance>
Gets the instance with the specified name, if any.
Sourcepub fn instances(
&self,
) -> impl Iterator<Item = (&InterfaceIdentifier, &ExportInstance)>
pub fn instances( &self, ) -> impl Iterator<Item = (&InterfaceIdentifier, &ExportInstance)>
Gets an iterator over all instances by identifier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Exports
impl !RefUnwindSafe for Exports
impl Send for Exports
impl Sync for Exports
impl Unpin for Exports
impl !UnwindSafe for Exports
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more