pub trait ComponentState:
HasMethods
+ HasStub
+ ScryptoEncode
+ ScryptoDecode {
const BLUEPRINT_NAME: &'static str;
// Provided method
fn instantiate(self) -> Owned<Self> { ... }
}
Required Associated Constants§
const BLUEPRINT_NAME: &'static str
Provided Methods§
fn instantiate(self) -> Owned<Self>
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.