/// Validates [`Payload::CodeSectionEntry`](crate::Payload).
///
/// This function will prepare a [`FuncValidator`] which can be used to
/// validate the function. The function body provided will be parsed only
/// enough to create the function validation context. After this the
/// [`OperatorsReader`](crate::readers::OperatorsReader) returned can be used to read the
/// opcodes of the function as well as feed information into the validator.
///
/// Note that the returned [`FuncValidator`] is "connected" to this
/// [`Validator`] in that it uses the internal context of this validator for
/// validating the function. The [`FuncValidator`] can be sent to
/// another thread, for example, to offload actual processing of functions
/// elsewhere.


Note that the returned [`FuncValidator`] is "connected" to this
[`Validator`] in that it uses the internal context of this validator for
validating the function. The [`FuncValidator`] can be sent to
another thread, for example, to offload actual processing of functions
elsewhere.
Note that the returned [ ` FuncValidator ` ] is " connected " to this [ ` Validator ` ] in that it uses the internal context of this validator for validating the function . The [ ` FuncValidator ` ] can be sent to another thread for example to offload actual processing of functions elsewhere .
pub fn code_section_entry(&mut self) -> Result<FuncValidator<ValidatorResources>> {
        let ty_index = self.state.func_type_indices[self.code_section_index];
        self.code_section_index += 1;
        let resources = ValidatorResources(self.state.arc().clone());
        Ok(FuncValidator::new(ty_index.item, 0, resources, &self.features).unwrap())
    }
pub fn code_section_entry ( & mut self ) -> Result < FuncValidator < ValidatorResources > > { let ty_index = self . state . func_type_indices [ self . code_section_index ] ; self . code_section_index += 1 ; let resources = ValidatorResources ( self . state . arc ( ) . clone ( ) ) ; Ok ( FuncValidator :: new ( ty_index . item , 0 , resources , & self . features ) . unwrap ( ) ) }
Validates [`Payload::CodeSectionEntry`](crate::Payload).
Validates [ ` Payload :: CodeSectionEntry ` ] ( crate :: Payload ) .
&mut self