Trait lasso::IntoReader[][src]

pub trait IntoReader<K = Spur>: Interner<K> where
    K: Key
{ type Reader: Reader<K>; #[must_use] fn into_reader(self) -> Self::Reader
    where
        Self: 'static
; }
Expand description

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

Associated Types

type Reader: Reader<K>[src]

The type of Reader the interner will be converted into

Required methods

#[must_use]
fn into_reader(self) -> Self::Reader where
    Self: 'static, 
[src]

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

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

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

#[must_use]
fn into_reader(self) -> Self::Reader where
    Self: 'static, 
[src]

#[must_use]
fn into_reader_boxed(self: Box<Self>) -> Self::Reader where
    Self: 'static, 
[src]

Implementors

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

type Reader = RodeoReader<K, S>

#[must_use]
fn into_reader(self) -> Self::Reader where
    Self: 'static, 
[src]

#[must_use]
fn into_reader_boxed(self: Box<Self>) -> Self::Reader where
    Self: 'static, 
[src]

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

type Reader = RodeoReader<K, S>

#[must_use]
fn into_reader(self) -> Self::Reader where
    Self: 'static, 
[src]

#[must_use]
fn into_reader_boxed(self: Box<Self>) -> Self::Reader where
    Self: 'static, 
[src]