pub fn resolve_loadtime_values(&self, arg: &FTerm) -> Option<FTerm> {
    match *arg {
      // A special value 0 means NIL []
      FTerm::LoadTimeAtom(0) => Some(FTerm::Nil),

      // Repack load-time atom via an `LTerm` index into an `FTerm` atom
      FTerm::LoadTimeAtom(i) => {
        let aindex = self.atom_from_loadtime_index(i).atom_index();
        Some(FTerm::Atom(aindex))
      },

      // ExtList_ can contain Atom_ - convert them to runtime Atoms
      FTerm::LoadTimeExtlist(ref lst) => {
        let mut result: Vec<FTerm> = Vec::new();
        result.reserve(lst.len());
        for x in lst.iter() {
          match self.resolve_loadtime_values(x) {
            Some(tmp) => result.push(tmp),
            None => result.push(x.clone())
          }
        };
        Some(FTerm::LoadTimeExtlist(result))
      },
      // Otherwise no changes
      _ => None
    }
  }
/// Given a load-time `Atom_` or a structure possibly containing `Atom_`s,
/// resolve it to a runtime atom index using a lookup table.
Given a load-time `Atom_` or a structure possibly containing `Atom_`s,
resolve it to a runtime atom index using a lookup table.
Given a load - time ` Atom_ ` or a structure possibly containing ` Atom_ ` s resolve it to a runtime atom index using a lookup table .
pub fn resolve_loadtime_values(&self, arg: &FTerm) -> Option<FTerm> {
    match *arg {
      // A special value 0 means NIL []
      FTerm::LoadTimeAtom(0) => Some(FTerm::Nil),
      // Repack load-time atom via an `LTerm` index into an `FTerm` atom
      FTerm::LoadTimeAtom(i) => {
        let aindex = self.atom_from_loadtime_index(i).atom_index();
        Some(FTerm::Atom(aindex))
      },
      // ExtList_ can contain Atom_ - convert them to runtime Atoms
      FTerm::LoadTimeExtlist(ref lst) => {
        let mut result: Vec<FTerm> = Vec::new();
        result.reserve(lst.len());
        for x in lst.iter() {
          match self.resolve_loadtime_values(x) {
            Some(tmp) => result.push(tmp),
            None => result.push(x.clone())
          }
        };
        Some(FTerm::LoadTimeExtlist(result))
      },
      // Otherwise no changes
      _ => None
    }
  }
pub fn resolve_loadtime_values ( & self , arg : & FTerm ) -> Option < FTerm > { match * arg { // A special value 0 means NIL [] FTerm :: LoadTimeAtom ( 0 ) => Some ( FTerm :: Nil ) , // Repack load-time atom via an `LTerm` index into an `FTerm` atom FTerm :: LoadTimeAtom ( i ) => { let aindex = self . atom_from_loadtime_index ( i ) . atom_index ( ) ; Some ( FTerm :: Atom ( aindex ) ) } , // ExtList_ can contain Atom_ - convert them to runtime Atoms FTerm :: LoadTimeExtlist ( ref lst ) => { let mut result : Vec < FTerm > = Vec :: new ( ) ; result . reserve ( lst . len ( ) ) ; for x in lst . iter ( ) { match self . resolve_loadtime_values ( x ) { Some ( tmp ) => result . push ( tmp ) , None => result . push ( x . clone ( ) ) } } ; Some ( FTerm :: LoadTimeExtlist ( result ) ) } , // Otherwise no changes _ => None } }
Given a load-time `Atom_` or a structure possibly containing `Atom_`s,
resolve it to a runtime atom index using a lookup table.
Given a load - time ` Atom_ ` or a structure possibly containing ` Atom_ ` s resolve it to a runtime atom index using a lookup table .
&self
arg
&FTerm