A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.wasmtime.dev/api/wasmtime/component/types/struct.Component.html below:

Component in wasmtime::component::types - Rust

pub struct Component(/* private fields */);

Available on crate features runtime and component-model only.

Expand description

Component type

Implementations§ Source§ impl Component Source pub fn get_import(&self, engine: &Engine, name: &str) -> Option<ComponentItem>

Returns import associated with name, if such exists in the component

Source pub fn imports<'a>( &'a self, engine: &'a Engine, ) -> impl ExactSizeIterator<Item = (&'a str, ComponentItem)> + 'a

Iterates over imports of the component

Source pub fn get_export(&self, engine: &Engine, name: &str) -> Option<ComponentItem>

Returns export associated with name, if such exists in the component

Source pub fn exports<'a>( &'a self, engine: &'a Engine, ) -> impl ExactSizeIterator<Item = (&'a str, ComponentItem)> + 'a

Iterates over exports of the component

Trait Implementations§ Auto Trait Implementations§ Blanket Implementations§

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4