pub trait CompilerContract:
    Serialize
    + Send
    + Sync
    + Debug
    + Clone
    + Eq
    + Sized {
    // Required methods
    fn abi_ref(&self) -> Option<&JsonAbi>;
    fn bin_ref(&self) -> Option<&BytecodeObject>;
    fn bin_runtime_ref(&self) -> Option<&BytecodeObject>;
    // Provided method
    fn as_compact_contract_ref(&self) -> CompactContractRef<'_> { ... }
}Expand description
Represents a compiled contract
Required Methods§
fn bin_ref(&self) -> Option<&BytecodeObject>
fn bin_runtime_ref(&self) -> Option<&BytecodeObject>
Provided Methods§
fn as_compact_contract_ref(&self) -> CompactContractRef<'_>
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.