soroban_sdk

Trait IntoVal

Source
pub trait IntoVal<E: Env, T> {
    // Required method
    fn into_val(&self, e: &E) -> T;
}
Expand description

Used to do conversions between values in the Soroban environment.

Required Methods§

Source

fn into_val(&self, e: &E) -> T

Implementors§

Source§

impl IntoVal<Env, BytesN<48>> for Fp

Source§

impl IntoVal<Env, BytesN<96>> for Fp2

Source§

impl IntoVal<Env, BytesN<96>> for G1Affine

Source§

impl IntoVal<Env, BytesN<192>> for G2Affine

Source§

impl IntoVal<Env, Val> for Fp2

Source§

impl IntoVal<Env, Val> for Fp

Source§

impl IntoVal<Env, Val> for Fr

Source§

impl IntoVal<Env, Val> for G1Affine

Source§

impl IntoVal<Env, Val> for G2Affine

Source§

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

Source§

impl<const N: usize> IntoVal<Env, BytesN<N>> for Hash<N>

Source§

impl<const N: usize> IntoVal<Env, Val> for Hash<N>