Struct ketos::name::NameStore
[−]
[src]
pub struct NameStore { // some fields omitted }
Maps interned Name
values to their String
representations
Methods
impl NameStore
[src]
fn new() -> NameStore
Constructs an empty NameStore
.
fn add(&mut self, name: &str) -> Name
Adds a name to the NameStore
if it is not present.
Returns a Name
value to refer to the new or existing name.
fn get_name(&self, name: &str) -> Option<Name>
Returns the Name
value of a given string, if it exists.
fn get(&self, name: Name) -> &str
Returns the string representation of an interned name.
fn iter(&self) -> Iter<String>
Iterates over all stored names.
Trait Implementations
impl Debug for NameStore
[src]
impl Clone for NameStore
[src]
fn clone(&self) -> NameStore
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more