SymbolEq

Trait SymbolEq 

Source
pub trait SymbolEq {
    // Required method
    fn is(&self, interner: &Interner, s: &str) -> bool;
}
Expand description

Convenience trait for comparing a Symbol to a string literal.

Avoids the need to call interner.resolve(sym) == "..." repeatedly.

Required Methods§

Source

fn is(&self, interner: &Interner, s: &str) -> bool

Returns true if this symbol resolves to the given string.

Implementors§