pub trait Storage:
Send
+ Sync
+ 'static {
const TYPE: &'static TypeNode;
}Expand description
Static link between a Rust storage type and its IR TypeNode.
Library makers declare what wire format a backend / index / model
natively understands. The framework reads Storage::TYPE at
recording time (and at slot binding time) to stamp every Contract
port’s value_info — the compiler’s type solver then walks the
graph and refuses any mismatch.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".