pub fn create_function(&mut self, function: Function) -> Result<Opr24, ErrorKind> {
      let slot = Opr24::try_from(self.functions.len()).map_err(|_| ErrorKind::TooManyFunctions)?;
      self.functions.push(function);
      Ok(slot)
   }
/// Creates a function and returns its ID.
Creates a function and returns its ID.
Creates a function and returns its ID .
pub fn create_function(&mut self, function: Function) -> Result<Opr24, ErrorKind> {
      let slot = Opr24::try_from(self.functions.len()).map_err(|_| ErrorKind::TooManyFunctions)?;
      self.functions.push(function);
      Ok(slot)
   }
pub fn create_function ( & mut self , function : Function ) -> Result < Opr24 , ErrorKind > { let slot = Opr24 :: try_from ( self . functions . len ( ) ) . map_err ( | _ | ErrorKind :: TooManyFunctions ) ? ; self . functions . push ( function ) ; Ok ( slot ) }
Creates a function and returns its ID.
Creates a function and returns its ID .
&mut self
function
Function