pub struct ExportInstance { /* private fields */ }
Expand description
Represents a specific interface from a instance.
Implementations§
Source§impl ExportInstance
impl ExportInstance
Sourcepub fn func(&self, name: impl AsRef<str>) -> Option<Func>
pub fn func(&self, name: impl AsRef<str>) -> Option<Func>
Gets the associated function by name, if any.
Sourcepub fn funcs(&self) -> impl Iterator<Item = (&str, Func)>
pub fn funcs(&self) -> impl Iterator<Item = (&str, Func)>
Iterates over all associated functions by name.
Sourcepub fn resource(&self, name: impl AsRef<str>) -> Option<ResourceType>
pub fn resource(&self, name: impl AsRef<str>) -> Option<ResourceType>
Gets the associated abstract resource by name, if any.
Sourcepub fn resources(&self) -> impl Iterator<Item = (&str, ResourceType)>
pub fn resources(&self) -> impl Iterator<Item = (&str, ResourceType)>
Iterates over all associated functions by name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExportInstance
impl !RefUnwindSafe for ExportInstance
impl Send for ExportInstance
impl Sync for ExportInstance
impl Unpin for ExportInstance
impl !UnwindSafe for ExportInstance
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