Trait lasso::IntoReader

source ·
pub trait IntoReader<K = Spur>: Interner<K>where
    K: Key,{
    type Reader: Reader<K>;

    // Required method
    fn into_reader(self) -> Self::Reader
       where Self: 'static;
}
Expand description

A generic interface over interners that can be turned into a Reader.

Required Associated Types§

source

type Reader: Reader<K>

The type of Reader the interner will be converted into

Required Methods§

source

fn into_reader(self) -> Self::Readerwhere Self: 'static,

Consumes the current Interner and converts it into a Reader to allow contention-free access of the interner from multiple threads

Implementations on Foreign Types§

source§

impl<K, I> IntoReader<K> for Box<I>where K: Key, I: IntoReader<K> + ?Sized + 'static,

§

type Reader = <I as IntoReader<K>>::Reader

source§

fn into_reader(self) -> Self::Readerwhere Self: 'static,

Implementors§

source§

impl<K, S> IntoReader<K> for Rodeo<K, S>where K: Key, S: BuildHasher,

§

type Reader = RodeoReader<K, S>

source§

impl<K, S> IntoReader<K> for ThreadedRodeo<K, S>where K: Key + Hash, S: BuildHasher + Clone,

§

type Reader = RodeoReader<K, S>