Sha256: 71d96686f7bea89a084fa676d87f198c630e9f8e23ad1927ea0df15af3eba19d

Contents?: true

Size: 309 Bytes

Versions: 39

Compression:

Stored size: 309 Bytes

Contents

mod iflets;

struct Context;
impl iflets::Context for Context {
    fn A(&mut self, a: u32, b: u32) -> Option<u32> {
        Some(a + b)
    }

    fn B(&mut self, value: u32) -> Option<(u32, u32)> {
        Some((value, value + 1))
    }
}

fn main() {
    iflets::constructor_C(&mut Context, 1, 2, 3, 4);
}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wasmtime-30.0.2 ./ext/cargo-vendor/cranelift-isle-0.117.2/isle_examples/link/iflets_main.rs
wasmtime-29.0.0 ./ext/cargo-vendor/cranelift-isle-0.116.0/isle_examples/link/iflets_main.rs
wasmtime-28.0.0 ./ext/cargo-vendor/cranelift-isle-0.115.0/isle_examples/link/iflets_main.rs
wasmtime-27.0.0 ./ext/cargo-vendor/cranelift-isle-0.114.0/isle_examples/link/iflets_main.rs
wasmtime-26.0.0 ./ext/cargo-vendor/cranelift-isle-0.113.0/isle_examples/link/iflets_main.rs
wasmtime-25.0.2 ./ext/cargo-vendor/cranelift-isle-0.112.2/isle_examples/link/iflets_main.rs
wasmtime-25.0.1 ./ext/cargo-vendor/cranelift-isle-0.112.1/isle_examples/link/iflets_main.rs
wasmtime-25.0.0 ./ext/cargo-vendor/cranelift-isle-0.112.0/isle_examples/link/iflets_main.rs
wasmtime-24.0.0 ./ext/cargo-vendor/cranelift-isle-0.111.0/isle_examples/link/iflets_main.rs
wasmtime-23.0.2 ./ext/cargo-vendor/cranelift-isle-0.110.2/isle_examples/link/iflets_main.rs
wasmtime-22.0.0 ./ext/cargo-vendor/cranelift-isle-0.109.0/isle_examples/link/iflets_main.rs
wasmtime-21.0.1 ./ext/cargo-vendor/cranelift-isle-0.108.1/isle_examples/link/iflets_main.rs
wasmtime-20.0.2 ./ext/cargo-vendor/cranelift-isle-0.107.2/isle_examples/link/iflets_main.rs
wasmtime-20.0.0 ./ext/cargo-vendor/cranelift-isle-0.107.2/isle_examples/link/iflets_main.rs
wasmtime-18.0.3 ./ext/cargo-vendor/cranelift-isle-0.105.3/isle_examples/link/iflets_main.rs
wasmtime-17.0.1 ./ext/cargo-vendor/cranelift-isle-0.104.1/isle_examples/link/iflets_main.rs
wasmtime-17.0.0 ./ext/cargo-vendor/cranelift-isle-0.104.0/isle_examples/link/iflets_main.rs
wasmtime-16.0.0 ./ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/iflets_main.rs
wasmtime-15.0.1 ./ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/iflets_main.rs
wasmtime-15.0.0 ./ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/iflets_main.rs