pub struct View<R>(/* private fields */);Expand description
A wrapper for a Lookup implementation
Implementations§
Trait Implementations§
Source§impl<R, Q> Retriever<Q> for View<R>where
R: Retriever<Q>,
impl<R, Q> Retriever<Q> for View<R>where
R: Retriever<Q>,
type Pos = <R as Retriever<Q>>::Pos
Source§fn pos_by_key(&self, key: Q) -> &[Self::Pos]
fn pos_by_key(&self, key: Q) -> &[Self::Pos]
Returns all known positions for a given
Key.
If the Key not exist, than is the slice empty.Source§fn pos_by_many_keys<'a, K>(
&'a self,
keys: K,
) -> impl Iterator<Item = &'a Self::Pos>where
K: IntoIterator<Item = Q>,
Self::Pos: 'a,
fn pos_by_many_keys<'a, K>(
&'a self,
keys: K,
) -> impl Iterator<Item = &'a Self::Pos>where
K: IntoIterator<Item = Q>,
Self::Pos: 'a,
Returns all known positions for a given iterator of
Keys. Read moreAuto Trait Implementations§
impl<R> Freeze for View<R>where
R: Freeze,
impl<R> RefUnwindSafe for View<R>where
R: RefUnwindSafe,
impl<R> Send for View<R>where
R: Send,
impl<R> Sync for View<R>where
R: Sync,
impl<R> Unpin for View<R>where
R: Unpin,
impl<R> UnwindSafe for View<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more