pub type NameSet = OxiHashSet<String>;Expand description
A set of String values optimized for name lookups.
Used internally for tracking declared names, reserved identifiers, etc.
Aliased Type§
pub struct NameSet { /* private fields */ }Implementations§
Source§impl NameSet
impl NameSet
Sourcepub fn insert_str(&mut self, s: &str) -> bool
pub fn insert_str(&mut self, s: &str) -> bool
Insert a &str directly.
Sourcepub fn contains_str(&self, s: &str) -> bool
pub fn contains_str(&self, s: &str) -> bool
Check whether the set contains the given &str.
Sourcepub fn remove_str(&mut self, s: &str) -> bool
pub fn remove_str(&mut self, s: &str) -> bool
Remove by &str.