soroban_env_host

Trait CheckedEnvArg

Source
pub trait CheckedEnvArg: Sized {
    // Provided method
    fn check_env_arg<E>(self, _e: &E) -> Result<Self, <E as EnvBase>::Error>
       where E: Env { ... }
}
Expand description

This trait is used by macro-generated dispatch and forwarding functions to check arguments being passed to the Env. The default implementations call through to the Env integrity-checking functions.

Provided Methods§

Source

fn check_env_arg<E>(self, _e: &E) -> Result<Self, <E as EnvBase>::Error>
where E: Env,

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 CheckedEnvArg for i64

Source§

impl CheckedEnvArg for u64

Implementors§