Skip to main content

NameSet

Type Alias NameSet 

Source
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

Source

pub fn insert_str(&mut self, s: &str) -> bool

Insert a &str directly.

Source

pub fn contains_str(&self, s: &str) -> bool

Check whether the set contains the given &str.

Source

pub fn remove_str(&mut self, s: &str) -> bool

Remove by &str.