fn initialize_dtable(
      &mut self,
      methods: impl Iterator<Item = (u16, Opr24)>,
      env: &mut Environment,
      gc: &mut Memory,
      dtable: &mut DispatchTable,
   ) {
      for (method_id, function_id) in methods {
         let function = unsafe { env.get_function_unchecked_mut(function_id) };
         function.name = Rc::from(format!("{}.{}", dtable.pretty_name, function.name));
         let closure = self.create_closure(env, gc, function_id);
         dtable.set_method(method_id, closure);
      }
   }
/// Initializes a dispatch table with methods obtained from a method ID to function ID map.
/// Each function's name is prepended with `type_name.`.
Initializes a dispatch table with methods obtained from a method ID to function ID map.
Each function's name is prepended with `type_name.`.
Initializes a dispatch table with methods obtained from a method ID to function ID map . Each function ' s name is prepended with ` type_name . ` .
fn initialize_dtable(
      &mut self,
      methods: impl Iterator<Item = (u16, Opr24)>,
      env: &mut Environment,
      gc: &mut Memory,
      dtable: &mut DispatchTable,
   ) {
      for (method_id, function_id) in methods {
         let function = unsafe { env.get_function_unchecked_mut(function_id) };
         function.name = Rc::from(format!("{}.{}", dtable.pretty_name, function.name));
         let closure = self.create_closure(env, gc, function_id);
         dtable.set_method(method_id, closure);
      }
   }
fn initialize_dtable ( & mut self , methods : impl Iterator < Item = ( u16 , Opr24 ) > , env : & mut Environment , gc : & mut Memory , dtable : & mut DispatchTable , ) { for ( method_id , function_id ) in methods { let function = unsafe { env . get_function_unchecked_mut ( function_id ) } ; function . name = Rc :: from ( format ! ( " " dtable pretty_name function name ) ) ; let closure = self . create_closure ( env , gc , function_id ) ; dtable . set_method ( method_id , closure ) ; } }
Initializes a dispatch table with methods obtained from a method ID to function ID map.
Initializes a dispatch table with methods obtained from a method ID to function ID map .
&mut self
methods
impl Iterator<Item = (u16, Opr24)>
env
&mut Environment
gc
&mut Memory
dtable
&mut DispatchTable