numcodecs_wasm_guest

Macro export_codec

Source
macro_rules! export_codec {
    ($codec:ty) => { ... };
}
Expand description

Export a StaticCodec type using the WASM component model.


struct MyCodec {
    // ...
}

impl numcodecs::Codec for MyCodec {
    // ...
}

impl numcodecs::StaticCodec for MyCodec {
    // ...
}

export_codec!(MyCodec);