Trait lasso::Reader[][src]

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

fn get(&self, val: &str) -> Option<K>[src]

Get a key for the given string value if it exists

fn contains(&self, val: &str) -> bool[src]

Returns true if the current interner contains the given string

Implementations on Foreign Types

impl<K, I: ?Sized> Reader<K> for Box<I> where
    K: Key,
    I: Reader<K> + 'static, 
[src]

fn get(&self, val: &str) -> Option<K>[src]

fn contains(&self, val: &str) -> bool[src]

Implementors

impl<K, S> Reader<K> for &ThreadedRodeo<K, S> where
    K: Key + Hash,
    S: BuildHasher + Clone
[src]

fn get(&self, val: &str) -> Option<K>[src]

fn contains(&self, val: &str) -> bool[src]

impl<K, S> Reader<K> for Rodeo<K, S> where
    K: Key,
    S: BuildHasher
[src]

fn get(&self, val: &str) -> Option<K>[src]

fn contains(&self, val: &str) -> bool[src]

impl<K, S> Reader<K> for RodeoReader<K, S> where
    K: Key,
    S: BuildHasher
[src]

fn get(&self, val: &str) -> Option<K>[src]

fn contains(&self, val: &str) -> bool[src]

impl<K, S> Reader<K> for ThreadedRodeo<K, S> where
    K: Key + Hash,
    S: BuildHasher + Clone
[src]

fn get(&self, val: &str) -> Option<K>[src]

fn contains(&self, val: &str) -> bool[src]