Trait RuntimeType

Source
pub trait RuntimeType:
    Portable
    + MetaAware
    + Eq { }
Expand description

Deterministic, portable, and metadata-aware domain type for no_std runtimes.

Combines Portable and MetaAware with Eq to capture the core guarantees required by most runtime domain types. These bounds ensure values can be encoded, reconstructed, compared, and described in metadata deterministically inside a WASM runtime.

  • Portable: Provides codec safety, cloneability, and debug support.
  • MetaAware: Enables metadata introspection by external tools.
  • Eq: Ensures deterministic equality for consistent state comparisons.

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.

Implementors§

Source§

impl<T> RuntimeType for T
where T: Portable + MetaAware + Eq,