pub fn from_str(val: &str) -> LTerm {
  let mut atoms = ATOMS.atoms.lock().unwrap();

  if atoms.contains_key(val) {
    return make_atom(atoms[val]);
  }

  let mut atoms_r = ATOMS.atoms_r.lock().unwrap();

  let index = AtomStorage::register_atom(
    &mut atoms, &mut atoms_r, val
  );

  make_atom(index)
}
// Allocate new atom in the atom table or find existing. Pack the atom index
// as an immediate2 Term
Allocate new atom in the atom table or find existing. Pack the atom index
as an immediate2 Term
Allocate new atom in the atom table or find existing . Pack the atom index as an immediate2 Term
pub fn from_str(val: &str) -> LTerm {
  let mut atoms = ATOMS.atoms.lock().unwrap();
  if atoms.contains_key(val) {
    return make_atom(atoms[val]);
  }
  let mut atoms_r = ATOMS.atoms_r.lock().unwrap();
  let index = AtomStorage::register_atom(
    &mut atoms, &mut atoms_r, val
  );
  make_atom(index)
}
pub fn from_str ( val : & str ) -> LTerm { let mut atoms = ATOMS . atoms . lock ( ) . unwrap ( ) ; if atoms . contains_key ( val ) { return make_atom ( atoms [ val ] ) ; } let mut atoms_r = ATOMS . atoms_r . lock ( ) . unwrap ( ) ; let index = AtomStorage :: register_atom ( & mut atoms , & mut atoms_r , val ) ; make_atom ( index ) }
Allocate new atom in the atom table or find existing.
Allocate new atom in the atom table or find existing .
val
&str