Function multiversx_sc_codec::try_cast_execute_or_else
source · pub fn try_cast_execute_or_else<T, U, R, If, Else>(
t: T,
exec_if: If,
exec_else: Else
) -> Rwhere
T: 'static,
U: 'static,
R: 'static,
If: FnOnce(U) -> R,
Else: FnOnce(T) -> R,