Skip to main content

Crate hermes_atom_table

Crate hermes_atom_table 

Source
Expand description

Ported from juno atom_table for the Hermes Rust lexer; carries encapsulated unsafe; adds a byte/WTF-8 intern path.

Structs§

Atom
This represents a unique string index in the table.
AtomBytes
This represents a unique byte-string index in the table. The bytes need not be valid UTF-8.
AtomTable
A string uniquing table - only one copy of a string is stored and all attempts to add the same string again return the same atom. This table is intended to be easily shareable, so it utilizes interior mutability. UnsafeCell<> is safe because we never allow reference to it to escape.
AtomU16
This represents a unique string index in the table.

Constants§

INVALID_ATOM
A special value reserved for the invalid atom.
INVALID_ATOM_BYTES
A special value reserved for the invalid atom bytes.