pub trait CrossEnvType:
RuntimeType
+ Send
+ Sync
+ MaybeSerializeDeserialize { }Expand description
Cross-environment portable runtime type usable in both std and no_std.
Extends RuntimeType with thread-safety and optional serialization so the
same domain type can be safely shared between:
- deterministic WASM runtime execution, and
- native node/RPC/off-chain contexts.
This avoids semantic divergence between runtime and host representations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.