pub trait Contract {
// Required methods
fn interface() -> Interface;
fn stamp() -> &'static Stamp;
}Expand description
A contract’s shape, as a typed slot names it: implemented by the macro for
dyn ForgePeer (a contract’s peer trait).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".