soroban_sdk::testutils

Trait Register

Source
pub trait Register {
    // Required method
    fn register<'i, I, A>(self, env: &Env, id: I, args: A) -> Address
       where I: Into<Option<&'i Address>>,
             A: ConstructorArgs;
}
Available on crate feature testutils only.

Required Methods§

Source

fn register<'i, I, A>(self, env: &Env, id: I, args: A) -> Address
where I: Into<Option<&'i Address>>, A: ConstructorArgs,

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.

Implementations on Foreign Types§

Source§

impl<'w> Register for &'w [u8]

Source§

fn register<'i, I, A>(self, env: &Env, id: I, args: A) -> Address
where I: Into<Option<&'i Address>>, A: ConstructorArgs,

Implementors§

Source§

impl<C> Register for C
where C: ContractFunctionSet + 'static,