Trait lasso::IntoResolver

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

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

A generic interface over Readers that can be turned into a Resolver.

Required Associated Types§

source

type Resolver: Resolver<K>

The type of Resolver the reader will be converted into

Required Methods§

source

fn into_resolver(self) -> Self::Resolverwhere Self: 'static,

Consumes the current Reader and makes it into a Resolver, allowing contention-free access from multiple threads with the lowest possible memory consumption

Implementations on Foreign Types§

source§

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

§

type Resolver = <I as IntoResolver<K>>::Resolver

source§

fn into_resolver(self) -> Self::Resolverwhere Self: 'static,

Implementors§

source§

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

source§

impl<K, S> IntoResolver<K> for RodeoReader<K, S>where K: Key, S: BuildHasher,

source§

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