fn result_to_value<T, E>(r: Result<T, E>) -> Result<contract_ffi::value::Value, ParsingError>
where
    contract_ffi::value::Value: From<T>,
    E: std::fmt::Debug,
{
    r.map(contract_ffi::value::Value::from)
        .map_err(|e| ParsingError(format!("{:?}", e)))
}
/// Map a result into the expected error for this module, while also
/// converting the type into a Value. Use case: parsing U128, U256,
/// U512 from a string.
Map a result into the expected error for this module, while also
converting the type into a Value. Use case: parsing U128, U256,
U512 from a string.
Map a result into the expected error for this module while also converting the type into a Value . Use case : parsing U128 U256 U512 from a string .
fn result_to_value<T, E>(r: Result<T, E>) -> Result<contract_ffi::value::Value, ParsingError>
where
    contract_ffi::value::Value: From<T>,
    E: std::fmt::Debug,
{
    r.map(contract_ffi::value::Value::from)
        .map_err(|e| ParsingError(format!("{:?}", e)))
}
fn result_to_value < T , E > ( r : Result < T , E > ) -> Result < contract_ffi :: value :: Value , ParsingError > where contract_ffi :: value :: Value : From < T > , E : std :: fmt :: Debug , { r . map ( contract_ffi :: value :: Value :: from ) . map_err ( | e | ParsingError ( format ! ( " " e ) ) ) }
Map a result into the expected error for this module, while also
converting the type into a Value.
Map a result into the expected error for this module while also converting the type into a Value .
r
Result<T, E>
r
Result<T, E>