soroban_sdk

Trait FromVal

Source
pub trait FromVal<E: Env, T> {
    // Required method
    fn from_val(e: &E, v: &T) -> Self;
}
Expand description

Used to do conversions between values in the Soroban environment.

Required Methods§

Source

fn from_val(e: &E, v: &T) -> 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.

Implementors§

Source§

impl<E: Env, T, U> FromVal<E, T> for U
where U: TryFromVal<E, T>,