Trait lasso::Reader

source ·
pub trait Reader<K = Spur>: Resolver<K> {
    fn get(&self, val: &str) -> Option<K>;
    fn contains(&self, val: &str) -> bool;
}
Expand description

A generic interface that allows using any underlying interner for both its reading and resolution capabilities, allowing both str -> key and key -> str lookups

Required Methods§

Get a key for the given string value if it exists

Returns true if the current interner contains the given string

Implementations on Foreign Types§

Implementors§