pub trait TxToSpecified<Env>: TxTo<Env> + AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>>where
Env: TxEnv,{
// Provided method
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
where F: FnOnce(&ManagedAddress<<Env as TxEnv>::Api>) -> R { ... }
}
Expand description
Marks the non-empty recipient of a transaction.
Enforces the recipient to be explicitly specified.
Provided Methods§
Sourcefn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
Avoids a clone when performing transfer-execute.
Other than that, does thesame as AnnotatedValue::into_value
.
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.