pub fn encode_view_function_inputs_with_info_to<Resolver, Inputs>(
inputs: Inputs,
view_function_api_info: &ViewFunctionInfo<'_, <Resolver as TypeResolver>::TypeId>,
type_resolver: &Resolver,
out: &mut Vec<u8>,
) -> Result<(), ViewFunctionInputsEncodeError>where
Inputs: IntoEncodableValues,
Resolver: TypeResolver,
<Resolver as TypeResolver>::TypeId: Clone + Debug,Expand description
Encode to a provided output Vec the Runtime API input data necessary to call a View Function.
Unlike encode_view_function_inputs_to, which obtains the View Function info internally given trait and method names,
this function takes the View Function info as an argument. This is useful if you already have the info available,
for example if you are encoding multiple inputs for a given View Function.