Home
last modified time | relevance | path

Searched refs:Ctx (Results 1 – 25 of 35) sorted by relevance

12

/wasmtime-44.0.1/cranelift/codegen/src/
H A Dctxhash.rs75 fn compute_hash<Ctx, K>(ctx: &Ctx, k: &K) -> u32 in compute_hash() argument
77 Ctx: CtxHash<K>, in compute_hash()
87 pub fn insert<Ctx>(&mut self, k: K, v: V, ctx: &Ctx) -> Option<V> in insert()
89 Ctx: CtxEq<K, K> + CtxHash<K>, in insert()
106 pub fn get<'a, Q, Ctx>(&'a self, k: &Q, ctx: &Ctx) -> Option<&'a V> in get()
120 pub fn entry<'a, Ctx>(&'a mut self, k: K, ctx: &Ctx) -> Entry<'a, K, V> in entry()
122 Ctx: CtxEq<K, K> + CtxHash<K>, in entry()
190 struct Ctx { struct
193 impl CtxEq<Key, Key> for Ctx { implementation
198 impl CtxHash<Key> for Ctx { implementation
[all …]
/wasmtime-44.0.1/crates/wasi/tests/all/
H A Dstore.rs9 pub struct Ctx<T> { struct
21 impl<T> Ctx<T> { impl
26 ) -> Result<(Store<Ctx<T>>, TempDir)> { in new()
51 let ctx = Ctx { in new()
61 impl<T> Drop for Ctx<T> { implementation
87 impl WasiView for Ctx<MyWasiCtx> { implementation
/wasmtime-44.0.1/crates/wasi-keyvalue/tests/
H A Dmain.rs10 struct Ctx { struct
16 impl WasiView for Ctx { argument
25 async fn run_wasi(path: &str, ctx: Ctx) -> Result<()> { in run_wasi()
32 wasmtime_wasi_keyvalue::add_to_linker(&mut linker, |h: &mut Ctx| { in run_wasi()
57 Ctx { in keyvalue_main()
/wasmtime-44.0.1/crates/wasi-config/tests/
H A Dmain.rs11 struct Ctx { struct
17 impl WasiView for Ctx { argument
26 async fn run_wasi(path: &str, ctx: Ctx) -> Result<()> { in run_wasi()
33 wasmtime_wasi_config::add_to_linker(&mut linker, |h: &mut Ctx| { in run_wasi()
58 Ctx { in config_get()
/wasmtime-44.0.1/crates/wiggle/tests/
H A Dwasmtime_async.rs11 pub struct Ctx; struct
18 impl atoms::Atoms for Ctx { implementation
43 let mut linker = Linker::<Ctx>::new(store.engine()); in test_sync_host_func()
69 let mut linker = Linker::<Ctx>::new(store.engine()); in test_async_host_func()
108 fn async_store() -> Store<Ctx> { in async_store()
109 Store::new(&Engine::default(), Ctx) in async_store()
H A Dwasmtime_integration.rs23 pub struct Ctx; struct
30 impl atoms::Atoms for Ctx { implementation
111 fn store(engine: &Engine) -> Store<Ctx> { in store() argument
112 Store::new(engine, Ctx) in store()
H A Dwasmtime_sync.rs11 pub struct Ctx; struct
20 impl atoms::Atoms for Ctx { implementation
146 fn store(engine: &Engine) -> Store<Ctx> { in store() argument
147 Store::new(engine, Ctx) in store()
/wasmtime-44.0.1/crates/wasi-nn/tests/exec/
H A Dwitx.rs17 wasmtime_wasi_nn::witx::add_to_linker(&mut linker, |s: &mut Ctx| &mut s.wasi_nn)?; in run()
18 wasmtime_wasi::p1::add_to_linker_sync(&mut linker, |s: &mut Ctx| &mut s.wasi)?; in run()
20 let mut store = Store::new(&engine, Ctx::new(&artifacts_dir(), preload_model, backend)?); in run()
28 struct Ctx { struct
33 impl Ctx { implementation
H A Dwit.rs18 wasmtime_wasi_nn::wit::add_to_linker(&mut linker, |c: &mut Ctx| { in run()
23 let mut store = Store::new(&engine, Ctx::new(&artifacts_dir(), preload_model, backend)?); in run()
30 struct Ctx { struct
36 impl Ctx { implementation
64 impl wasmtime_wasi::WasiView for Ctx { implementation
/wasmtime-44.0.1/crates/misc/component-async-tests/src/
H A Dyield_runner.rs1 use super::Ctx;
24 impl bindings::local::local::continue_::Host for Ctx { implementation
35 impl bindings::local::local::ready::HostThing for Ctx { implementation
61 impl bindings::local::local::ready::HostThingWithStore for Ctx { implementation
85 impl bindings::local::local::ready::Host for Ctx {} implementation
H A Dresource_stream.rs6 use super::Ctx;
24 impl bindings::local::local::resource_stream::HostX for Ctx { implementation
36 impl bindings::local::local::resource_stream::HostWithStore for Ctx { implementation
52 impl bindings::local::local::resource_stream::Host for Ctx {} implementation
H A Dround_trip_direct.rs1 use super::Ctx;
12 impl bindings::RoundTripDirectImportsWithStore for Ctx { implementation
19 impl bindings::RoundTripDirectImports for Ctx {} implementation
H A Dyield_.rs1 use super::Ctx;
9 impl local::local::yield_::HostWithStore for Ctx { implementation
15 impl local::local::yield_::Host for Ctx {} implementation
H A Dlib.rs18 pub struct Ctx { struct
24 impl WasiView for Ctx { argument
33 impl HasData for Ctx { implementation
H A Dround_trip.rs1 use super::Ctx;
21 impl bindings::local::local::baz::HostWithStore for Ctx { implementation
28 impl bindings::local::local::baz::Host for Ctx {} implementation
H A Dborrowing_host.rs4 use super::Ctx;
20 impl bindings::local::local::borrowing_types::HostX for &mut Ctx { implementation
36 impl bindings::local::local::borrowing_types::Host for &mut Ctx {} implementation
H A Dround_trip_many.rs1 use super::Ctx;
25 impl bindings::local::local::many::HostWithStore for Ctx { implementation
57 impl bindings::local::local::many::Host for Ctx {} implementation
/wasmtime-44.0.1/crates/misc/component-async-tests/tests/scenario/
H A Dtransmit.rs347 Ctx { in async_readiness()
477 Ctx { in test_cancel()
530 linker: &Linker<Ctx>, in instantiate() argument
534 accessor: &'a Accessor<Ctx, HasSelf<Ctx>>, in call() argument
576 linker: &Linker<Ctx>, in instantiate() argument
582 accessor: &'a Accessor<Ctx, HasSelf<Ctx>>, in call() argument
602 _: impl AsContextMut<Data = Ctx>, in from_result()
623 linker: &Linker<Ctx>, in instantiate() argument
629 accessor: &'a Accessor<Ctx, HasSelf<Ctx>>, in call() argument
720 Ctx { in test_transmit_with()
[all …]
H A Dpost_return.rs4 use component_async_tests::{Ctx, yield_};
59 yield_::local::local::yield_::add_to_linker::<_, Ctx>(&mut linker, |ctx| ctx)?; in test_yield_post_return()
63 Ctx { in test_yield_post_return()
76 store: StoreContextMut<'_, Ctx>, in test_yield_post_return() argument
H A Dutil.rs8 use component_async_tests::{Ctx, yield_};
186 component_async_tests::yield_runner::bindings::local::local::continue_::add_to_linker::<_, Ctx>( in test_run_with_count()
190 component_async_tests::yield_runner::bindings::local::local::ready::add_to_linker::<_, Ctx>( in test_run_with_count()
196 Ctx, in test_run_with_count()
198 yield_::local::local::yield_::add_to_linker::<_, Ctx>(&mut linker, |ctx| ctx)?; in test_run_with_count()
202 Ctx { in test_run_with_count()
H A Dround_trip_direct.rs2 use component_async_tests::Ctx;
36 Ctx { in test_round_trip_direct()
53 Ctx, in test_round_trip_direct()
H A Dborrowing.rs82 component_async_tests::Ctx, in test_run_bool()
87 component_async_tests::Ctx { in test_run_bool()
H A Dround_trip.rs2 use component_async_tests::Ctx;
350 Ctx { in test_round_trip()
370 component_async_tests::round_trip::bindings::local::local::baz::add_to_linker::<_, Ctx>( in test_round_trip()
423 impl AccessorTask<Ctx, HasSelf<Ctx>> for Task { in test_round_trip()
424 async fn run(self, accessor: &Accessor<Ctx>) -> Result<()> { in test_round_trip()
/wasmtime-44.0.1/crates/wasi-tls/tests/p3/
H A Dmod.rs9 struct Ctx { struct
15 impl WasiView for Ctx { argument
24 impl WasiTlsView for Ctx { implementation
34 let ctx = Ctx { in run_test()
/wasmtime-44.0.1/crates/wasi-tls/tests/p2/
H A Dmod.rs11 struct Ctx { struct
17 impl WasiView for Ctx { argument
26 impl WasiTlsView for Ctx { implementation
36 let ctx = Ctx { in run_test()

12