Path: blob/main/crates/component-macro/tests/expanded/conventions.rs
1692 views
/// Auto-generated bindings for a pre-instantiated version of a1/// component which implements the world `the-world`.2///3/// This structure is created through [`TheWorldPre::new`] which4/// takes a [`InstancePre`](wasmtime::component::InstancePre) that5/// has been created through a [`Linker`](wasmtime::component::Linker).6///7/// For more information see [`TheWorld`] as well.8pub struct TheWorldPre<T: 'static> {9instance_pre: wasmtime::component::InstancePre<T>,10indices: TheWorldIndices,11}12impl<T: 'static> Clone for TheWorldPre<T> {13fn clone(&self) -> Self {14Self {15instance_pre: self.instance_pre.clone(),16indices: self.indices.clone(),17}18}19}20impl<_T: 'static> TheWorldPre<_T> {21/// Creates a new copy of `TheWorldPre` bindings which can then22/// be used to instantiate into a particular store.23///24/// This method may fail if the component behind `instance_pre`25/// does not have the required exports.26pub fn new(27instance_pre: wasmtime::component::InstancePre<_T>,28) -> wasmtime::Result<Self> {29let indices = TheWorldIndices::new(&instance_pre)?;30Ok(Self { instance_pre, indices })31}32pub fn engine(&self) -> &wasmtime::Engine {33self.instance_pre.engine()34}35pub fn instance_pre(&self) -> &wasmtime::component::InstancePre<_T> {36&self.instance_pre37}38/// Instantiates a new instance of [`TheWorld`] within the39/// `store` provided.40///41/// This function will use `self` as the pre-instantiated42/// instance to perform instantiation. Afterwards the preloaded43/// indices in `self` are used to lookup all exports on the44/// resulting instance.45pub fn instantiate(46&self,47mut store: impl wasmtime::AsContextMut<Data = _T>,48) -> wasmtime::Result<TheWorld> {49let mut store = store.as_context_mut();50let instance = self.instance_pre.instantiate(&mut store)?;51self.indices.load(&mut store, &instance)52}53}54impl<_T: Send + 'static> TheWorldPre<_T> {55/// Same as [`Self::instantiate`], except with `async`.56pub async fn instantiate_async(57&self,58mut store: impl wasmtime::AsContextMut<Data = _T>,59) -> wasmtime::Result<TheWorld> {60let mut store = store.as_context_mut();61let instance = self.instance_pre.instantiate_async(&mut store).await?;62self.indices.load(&mut store, &instance)63}64}65/// Auto-generated bindings for index of the exports of66/// `the-world`.67///68/// This is an implementation detail of [`TheWorldPre`] and can69/// be constructed if needed as well.70///71/// For more information see [`TheWorld`] as well.72#[derive(Clone)]73pub struct TheWorldIndices {74interface0: exports::foo::foo::conventions::GuestIndices,75}76/// Auto-generated bindings for an instance a component which77/// implements the world `the-world`.78///79/// This structure can be created through a number of means80/// depending on your requirements and what you have on hand:81///82/// * The most convenient way is to use83/// [`TheWorld::instantiate`] which only needs a84/// [`Store`], [`Component`], and [`Linker`].85///86/// * Alternatively you can create a [`TheWorldPre`] ahead of87/// time with a [`Component`] to front-load string lookups88/// of exports once instead of per-instantiation. This89/// method then uses [`TheWorldPre::instantiate`] to90/// create a [`TheWorld`].91///92/// * If you've instantiated the instance yourself already93/// then you can use [`TheWorld::new`].94///95/// These methods are all equivalent to one another and move96/// around the tradeoff of what work is performed when.97///98/// [`Store`]: wasmtime::Store99/// [`Component`]: wasmtime::component::Component100/// [`Linker`]: wasmtime::component::Linker101pub struct TheWorld {102interface0: exports::foo::foo::conventions::Guest,103}104const _: () = {105#[allow(unused_imports)]106use wasmtime::component::__internal::anyhow;107impl TheWorldIndices {108/// Creates a new copy of `TheWorldIndices` bindings which can then109/// be used to instantiate into a particular store.110///111/// This method may fail if the component does not have the112/// required exports.113pub fn new<_T>(114_instance_pre: &wasmtime::component::InstancePre<_T>,115) -> wasmtime::Result<Self> {116let _component = _instance_pre.component();117let _instance_type = _instance_pre.instance_type();118let interface0 = exports::foo::foo::conventions::GuestIndices::new(119_instance_pre,120)?;121Ok(TheWorldIndices { interface0 })122}123/// Uses the indices stored in `self` to load an instance124/// of [`TheWorld`] from the instance provided.125///126/// Note that at this time this method will additionally127/// perform type-checks of all exports.128pub fn load(129&self,130mut store: impl wasmtime::AsContextMut,131instance: &wasmtime::component::Instance,132) -> wasmtime::Result<TheWorld> {133let _ = &mut store;134let _instance = instance;135let interface0 = self.interface0.load(&mut store, &_instance)?;136Ok(TheWorld { interface0 })137}138}139impl TheWorld {140/// Convenience wrapper around [`TheWorldPre::new`] and141/// [`TheWorldPre::instantiate`].142pub fn instantiate<_T>(143store: impl wasmtime::AsContextMut<Data = _T>,144component: &wasmtime::component::Component,145linker: &wasmtime::component::Linker<_T>,146) -> wasmtime::Result<TheWorld> {147let pre = linker.instantiate_pre(component)?;148TheWorldPre::new(pre)?.instantiate(store)149}150/// Convenience wrapper around [`TheWorldIndices::new`] and151/// [`TheWorldIndices::load`].152pub fn new(153mut store: impl wasmtime::AsContextMut,154instance: &wasmtime::component::Instance,155) -> wasmtime::Result<TheWorld> {156let indices = TheWorldIndices::new(&instance.instance_pre(&store))?;157indices.load(&mut store, instance)158}159/// Convenience wrapper around [`TheWorldPre::new`] and160/// [`TheWorldPre::instantiate_async`].161pub async fn instantiate_async<_T>(162store: impl wasmtime::AsContextMut<Data = _T>,163component: &wasmtime::component::Component,164linker: &wasmtime::component::Linker<_T>,165) -> wasmtime::Result<TheWorld>166where167_T: Send,168{169let pre = linker.instantiate_pre(component)?;170TheWorldPre::new(pre)?.instantiate_async(store).await171}172pub fn add_to_linker<T, D>(173linker: &mut wasmtime::component::Linker<T>,174host_getter: fn(&mut T) -> D::Data<'_>,175) -> wasmtime::Result<()>176where177D: foo::foo::conventions::HostWithStore,178for<'a> D::Data<'a>: foo::foo::conventions::Host,179T: 'static,180{181foo::foo::conventions::add_to_linker::<T, D>(linker, host_getter)?;182Ok(())183}184pub fn foo_foo_conventions(&self) -> &exports::foo::foo::conventions::Guest {185&self.interface0186}187}188};189pub mod foo {190pub mod foo {191#[allow(clippy::all)]192pub mod conventions {193#[allow(unused_imports)]194use wasmtime::component::__internal::{anyhow, Box};195#[derive(wasmtime::component::ComponentType)]196#[derive(wasmtime::component::Lift)]197#[derive(wasmtime::component::Lower)]198#[component(record)]199#[derive(Clone, Copy)]200pub struct LudicrousSpeed {201#[component(name = "how-fast-are-you-going")]202pub how_fast_are_you_going: u32,203#[component(name = "i-am-going-extremely-slow")]204pub i_am_going_extremely_slow: u64,205}206impl core::fmt::Debug for LudicrousSpeed {207fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {208f.debug_struct("LudicrousSpeed")209.field("how-fast-are-you-going", &self.how_fast_are_you_going)210.field(211"i-am-going-extremely-slow",212&self.i_am_going_extremely_slow,213)214.finish()215}216}217const _: () = {218assert!(21916 == < LudicrousSpeed as wasmtime::component::ComponentType220>::SIZE32221);222assert!(2238 == < LudicrousSpeed as wasmtime::component::ComponentType224>::ALIGN32225);226};227pub trait HostWithStore: wasmtime::component::HasData {}228impl<_T: ?Sized> HostWithStore for _T229where230_T: wasmtime::component::HasData,231{}232pub trait Host {233fn kebab_case(&mut self) -> ();234fn foo(&mut self, x: LudicrousSpeed) -> ();235fn function_with_dashes(&mut self) -> ();236fn function_with_no_weird_characters(&mut self) -> ();237fn apple(&mut self) -> ();238fn apple_pear(&mut self) -> ();239fn apple_pear_grape(&mut self) -> ();240fn a0(&mut self) -> ();241/// Comment out identifiers that collide when mapped to snake_case, for now; see242/// https://github.com/WebAssembly/component-model/issues/118243/// APPLE: func()244/// APPLE-pear-GRAPE: func()245/// apple-PEAR-grape: func()246fn is_xml(&mut self) -> ();247fn explicit(&mut self) -> ();248fn explicit_kebab(&mut self) -> ();249/// Identifiers with the same name as keywords are quoted.250fn bool(&mut self) -> ();251}252impl<_T: Host + ?Sized> Host for &mut _T {253fn kebab_case(&mut self) -> () {254Host::kebab_case(*self)255}256fn foo(&mut self, x: LudicrousSpeed) -> () {257Host::foo(*self, x)258}259fn function_with_dashes(&mut self) -> () {260Host::function_with_dashes(*self)261}262fn function_with_no_weird_characters(&mut self) -> () {263Host::function_with_no_weird_characters(*self)264}265fn apple(&mut self) -> () {266Host::apple(*self)267}268fn apple_pear(&mut self) -> () {269Host::apple_pear(*self)270}271fn apple_pear_grape(&mut self) -> () {272Host::apple_pear_grape(*self)273}274fn a0(&mut self) -> () {275Host::a0(*self)276}277/// Comment out identifiers that collide when mapped to snake_case, for now; see278/// https://github.com/WebAssembly/component-model/issues/118279/// APPLE: func()280/// APPLE-pear-GRAPE: func()281/// apple-PEAR-grape: func()282fn is_xml(&mut self) -> () {283Host::is_xml(*self)284}285fn explicit(&mut self) -> () {286Host::explicit(*self)287}288fn explicit_kebab(&mut self) -> () {289Host::explicit_kebab(*self)290}291/// Identifiers with the same name as keywords are quoted.292fn bool(&mut self) -> () {293Host::bool(*self)294}295}296pub fn add_to_linker<T, D>(297linker: &mut wasmtime::component::Linker<T>,298host_getter: fn(&mut T) -> D::Data<'_>,299) -> wasmtime::Result<()>300where301D: HostWithStore,302for<'a> D::Data<'a>: Host,303T: 'static,304{305let mut inst = linker.instance("foo:foo/conventions")?;306inst.func_wrap(307"kebab-case",308move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {309let host = &mut host_getter(caller.data_mut());310let r = Host::kebab_case(host);311Ok(r)312},313)?;314inst.func_wrap(315"foo",316move |317mut caller: wasmtime::StoreContextMut<'_, T>,318(arg0,): (LudicrousSpeed,)|319{320let host = &mut host_getter(caller.data_mut());321let r = Host::foo(host, arg0);322Ok(r)323},324)?;325inst.func_wrap(326"function-with-dashes",327move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {328let host = &mut host_getter(caller.data_mut());329let r = Host::function_with_dashes(host);330Ok(r)331},332)?;333inst.func_wrap(334"function-with-no-weird-characters",335move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {336let host = &mut host_getter(caller.data_mut());337let r = Host::function_with_no_weird_characters(host);338Ok(r)339},340)?;341inst.func_wrap(342"apple",343move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {344let host = &mut host_getter(caller.data_mut());345let r = Host::apple(host);346Ok(r)347},348)?;349inst.func_wrap(350"apple-pear",351move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {352let host = &mut host_getter(caller.data_mut());353let r = Host::apple_pear(host);354Ok(r)355},356)?;357inst.func_wrap(358"apple-pear-grape",359move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {360let host = &mut host_getter(caller.data_mut());361let r = Host::apple_pear_grape(host);362Ok(r)363},364)?;365inst.func_wrap(366"a0",367move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {368let host = &mut host_getter(caller.data_mut());369let r = Host::a0(host);370Ok(r)371},372)?;373inst.func_wrap(374"is-XML",375move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {376let host = &mut host_getter(caller.data_mut());377let r = Host::is_xml(host);378Ok(r)379},380)?;381inst.func_wrap(382"explicit",383move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {384let host = &mut host_getter(caller.data_mut());385let r = Host::explicit(host);386Ok(r)387},388)?;389inst.func_wrap(390"explicit-kebab",391move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {392let host = &mut host_getter(caller.data_mut());393let r = Host::explicit_kebab(host);394Ok(r)395},396)?;397inst.func_wrap(398"bool",399move |mut caller: wasmtime::StoreContextMut<'_, T>, (): ()| {400let host = &mut host_getter(caller.data_mut());401let r = Host::bool(host);402Ok(r)403},404)?;405Ok(())406}407}408}409}410pub mod exports {411pub mod foo {412pub mod foo {413#[allow(clippy::all)]414pub mod conventions {415#[allow(unused_imports)]416use wasmtime::component::__internal::{anyhow, Box};417#[derive(wasmtime::component::ComponentType)]418#[derive(wasmtime::component::Lift)]419#[derive(wasmtime::component::Lower)]420#[component(record)]421#[derive(Clone, Copy)]422pub struct LudicrousSpeed {423#[component(name = "how-fast-are-you-going")]424pub how_fast_are_you_going: u32,425#[component(name = "i-am-going-extremely-slow")]426pub i_am_going_extremely_slow: u64,427}428impl core::fmt::Debug for LudicrousSpeed {429fn fmt(430&self,431f: &mut core::fmt::Formatter<'_>,432) -> core::fmt::Result {433f.debug_struct("LudicrousSpeed")434.field(435"how-fast-are-you-going",436&self.how_fast_are_you_going,437)438.field(439"i-am-going-extremely-slow",440&self.i_am_going_extremely_slow,441)442.finish()443}444}445const _: () = {446assert!(44716 == < LudicrousSpeed as wasmtime::component::ComponentType448>::SIZE32449);450assert!(4518 == < LudicrousSpeed as wasmtime::component::ComponentType452>::ALIGN32453);454};455pub struct Guest {456kebab_case: wasmtime::component::Func,457foo: wasmtime::component::Func,458function_with_dashes: wasmtime::component::Func,459function_with_no_weird_characters: wasmtime::component::Func,460apple: wasmtime::component::Func,461apple_pear: wasmtime::component::Func,462apple_pear_grape: wasmtime::component::Func,463a0: wasmtime::component::Func,464is_xml: wasmtime::component::Func,465explicit: wasmtime::component::Func,466explicit_kebab: wasmtime::component::Func,467bool: wasmtime::component::Func,468}469#[derive(Clone)]470pub struct GuestIndices {471kebab_case: wasmtime::component::ComponentExportIndex,472foo: wasmtime::component::ComponentExportIndex,473function_with_dashes: wasmtime::component::ComponentExportIndex,474function_with_no_weird_characters: wasmtime::component::ComponentExportIndex,475apple: wasmtime::component::ComponentExportIndex,476apple_pear: wasmtime::component::ComponentExportIndex,477apple_pear_grape: wasmtime::component::ComponentExportIndex,478a0: wasmtime::component::ComponentExportIndex,479is_xml: wasmtime::component::ComponentExportIndex,480explicit: wasmtime::component::ComponentExportIndex,481explicit_kebab: wasmtime::component::ComponentExportIndex,482bool: wasmtime::component::ComponentExportIndex,483}484impl GuestIndices {485/// Constructor for [`GuestIndices`] which takes a486/// [`Component`](wasmtime::component::Component) as input and can be executed487/// before instantiation.488///489/// This constructor can be used to front-load string lookups to find exports490/// within a component.491pub fn new<_T>(492_instance_pre: &wasmtime::component::InstancePre<_T>,493) -> wasmtime::Result<GuestIndices> {494let instance = _instance_pre495.component()496.get_export_index(None, "foo:foo/conventions")497.ok_or_else(|| {498anyhow::anyhow!(499"no exported instance named `foo:foo/conventions`"500)501})?;502let mut lookup = move |name| {503_instance_pre504.component()505.get_export_index(Some(&instance), name)506.ok_or_else(|| {507anyhow::anyhow!(508"instance export `foo:foo/conventions` does \509not have export `{name}`"510)511})512};513let _ = &mut lookup;514let kebab_case = lookup("kebab-case")?;515let foo = lookup("foo")?;516let function_with_dashes = lookup("function-with-dashes")?;517let function_with_no_weird_characters = lookup(518"function-with-no-weird-characters",519)?;520let apple = lookup("apple")?;521let apple_pear = lookup("apple-pear")?;522let apple_pear_grape = lookup("apple-pear-grape")?;523let a0 = lookup("a0")?;524let is_xml = lookup("is-XML")?;525let explicit = lookup("explicit")?;526let explicit_kebab = lookup("explicit-kebab")?;527let bool = lookup("bool")?;528Ok(GuestIndices {529kebab_case,530foo,531function_with_dashes,532function_with_no_weird_characters,533apple,534apple_pear,535apple_pear_grape,536a0,537is_xml,538explicit,539explicit_kebab,540bool,541})542}543pub fn load(544&self,545mut store: impl wasmtime::AsContextMut,546instance: &wasmtime::component::Instance,547) -> wasmtime::Result<Guest> {548let _instance = instance;549let _instance_pre = _instance.instance_pre(&store);550let _instance_type = _instance_pre.instance_type();551let mut store = store.as_context_mut();552let _ = &mut store;553let kebab_case = *_instance554.get_typed_func::<(), ()>(&mut store, &self.kebab_case)?555.func();556let foo = *_instance557.get_typed_func::<558(LudicrousSpeed,),559(),560>(&mut store, &self.foo)?561.func();562let function_with_dashes = *_instance563.get_typed_func::<564(),565(),566>(&mut store, &self.function_with_dashes)?567.func();568let function_with_no_weird_characters = *_instance569.get_typed_func::<570(),571(),572>(&mut store, &self.function_with_no_weird_characters)?573.func();574let apple = *_instance575.get_typed_func::<(), ()>(&mut store, &self.apple)?576.func();577let apple_pear = *_instance578.get_typed_func::<(), ()>(&mut store, &self.apple_pear)?579.func();580let apple_pear_grape = *_instance581.get_typed_func::<582(),583(),584>(&mut store, &self.apple_pear_grape)?585.func();586let a0 = *_instance587.get_typed_func::<(), ()>(&mut store, &self.a0)?588.func();589let is_xml = *_instance590.get_typed_func::<(), ()>(&mut store, &self.is_xml)?591.func();592let explicit = *_instance593.get_typed_func::<(), ()>(&mut store, &self.explicit)?594.func();595let explicit_kebab = *_instance596.get_typed_func::<(), ()>(&mut store, &self.explicit_kebab)?597.func();598let bool = *_instance599.get_typed_func::<(), ()>(&mut store, &self.bool)?600.func();601Ok(Guest {602kebab_case,603foo,604function_with_dashes,605function_with_no_weird_characters,606apple,607apple_pear,608apple_pear_grape,609a0,610is_xml,611explicit,612explicit_kebab,613bool,614})615}616}617impl Guest {618pub fn call_kebab_case<S: wasmtime::AsContextMut>(619&self,620mut store: S,621) -> wasmtime::Result<()> {622let callee = unsafe {623wasmtime::component::TypedFunc::<624(),625(),626>::new_unchecked(self.kebab_case)627};628let () = callee.call(store.as_context_mut(), ())?;629callee.post_return(store.as_context_mut())?;630Ok(())631}632pub fn call_foo<S: wasmtime::AsContextMut>(633&self,634mut store: S,635arg0: LudicrousSpeed,636) -> wasmtime::Result<()> {637let callee = unsafe {638wasmtime::component::TypedFunc::<639(LudicrousSpeed,),640(),641>::new_unchecked(self.foo)642};643let () = callee.call(store.as_context_mut(), (arg0,))?;644callee.post_return(store.as_context_mut())?;645Ok(())646}647pub fn call_function_with_dashes<S: wasmtime::AsContextMut>(648&self,649mut store: S,650) -> wasmtime::Result<()> {651let callee = unsafe {652wasmtime::component::TypedFunc::<653(),654(),655>::new_unchecked(self.function_with_dashes)656};657let () = callee.call(store.as_context_mut(), ())?;658callee.post_return(store.as_context_mut())?;659Ok(())660}661pub fn call_function_with_no_weird_characters<662S: wasmtime::AsContextMut,663>(&self, mut store: S) -> wasmtime::Result<()> {664let callee = unsafe {665wasmtime::component::TypedFunc::<666(),667(),668>::new_unchecked(self.function_with_no_weird_characters)669};670let () = callee.call(store.as_context_mut(), ())?;671callee.post_return(store.as_context_mut())?;672Ok(())673}674pub fn call_apple<S: wasmtime::AsContextMut>(675&self,676mut store: S,677) -> wasmtime::Result<()> {678let callee = unsafe {679wasmtime::component::TypedFunc::<680(),681(),682>::new_unchecked(self.apple)683};684let () = callee.call(store.as_context_mut(), ())?;685callee.post_return(store.as_context_mut())?;686Ok(())687}688pub fn call_apple_pear<S: wasmtime::AsContextMut>(689&self,690mut store: S,691) -> wasmtime::Result<()> {692let callee = unsafe {693wasmtime::component::TypedFunc::<694(),695(),696>::new_unchecked(self.apple_pear)697};698let () = callee.call(store.as_context_mut(), ())?;699callee.post_return(store.as_context_mut())?;700Ok(())701}702pub fn call_apple_pear_grape<S: wasmtime::AsContextMut>(703&self,704mut store: S,705) -> wasmtime::Result<()> {706let callee = unsafe {707wasmtime::component::TypedFunc::<708(),709(),710>::new_unchecked(self.apple_pear_grape)711};712let () = callee.call(store.as_context_mut(), ())?;713callee.post_return(store.as_context_mut())?;714Ok(())715}716pub fn call_a0<S: wasmtime::AsContextMut>(717&self,718mut store: S,719) -> wasmtime::Result<()> {720let callee = unsafe {721wasmtime::component::TypedFunc::<722(),723(),724>::new_unchecked(self.a0)725};726let () = callee.call(store.as_context_mut(), ())?;727callee.post_return(store.as_context_mut())?;728Ok(())729}730/// Comment out identifiers that collide when mapped to snake_case, for now; see731/// https://github.com/WebAssembly/component-model/issues/118732/// APPLE: func()733/// APPLE-pear-GRAPE: func()734/// apple-PEAR-grape: func()735pub fn call_is_xml<S: wasmtime::AsContextMut>(736&self,737mut store: S,738) -> wasmtime::Result<()> {739let callee = unsafe {740wasmtime::component::TypedFunc::<741(),742(),743>::new_unchecked(self.is_xml)744};745let () = callee.call(store.as_context_mut(), ())?;746callee.post_return(store.as_context_mut())?;747Ok(())748}749pub fn call_explicit<S: wasmtime::AsContextMut>(750&self,751mut store: S,752) -> wasmtime::Result<()> {753let callee = unsafe {754wasmtime::component::TypedFunc::<755(),756(),757>::new_unchecked(self.explicit)758};759let () = callee.call(store.as_context_mut(), ())?;760callee.post_return(store.as_context_mut())?;761Ok(())762}763pub fn call_explicit_kebab<S: wasmtime::AsContextMut>(764&self,765mut store: S,766) -> wasmtime::Result<()> {767let callee = unsafe {768wasmtime::component::TypedFunc::<769(),770(),771>::new_unchecked(self.explicit_kebab)772};773let () = callee.call(store.as_context_mut(), ())?;774callee.post_return(store.as_context_mut())?;775Ok(())776}777/// Identifiers with the same name as keywords are quoted.778pub fn call_bool<S: wasmtime::AsContextMut>(779&self,780mut store: S,781) -> wasmtime::Result<()> {782let callee = unsafe {783wasmtime::component::TypedFunc::<784(),785(),786>::new_unchecked(self.bool)787};788let () = callee.call(store.as_context_mut(), ())?;789callee.post_return(store.as_context_mut())?;790Ok(())791}792}793}794}795}796}797798799