Struct moore_common::name::NameTable [] [src]

pub struct NameTable { /* fields omitted */ }

A lookup table of names. Internalizes strings either in a case sensitive or case insensitive way. Allows for bidirectional lookup, i.e. by string or by assigned name.

Methods

impl NameTable
[src]

[src]

Create a new empty name table.

[src]

Obtain a name for a string. This either inserts the string into the table and returns the new name, or returns the existing name if the string already exists in the table.

[src]

Retrieve the string given a name tag.

[src]

Try to find a string.