rpgx_wasm/
traits.rs

1pub trait WasmWrapper<T> {
2    /// Get a reference to the inner type (Rust struct)
3    fn inner(&self) -> &T;
4
5    /// Consume the wrapper and return the inner type
6    fn into_inner(self) -> T;
7
8    /// Create a new wrapper from the inner type
9    fn from_inner(inner: T) -> Self;
10}