pub enum EmbedMode {
Fresh,
Cached,
}Expand description
Cache mode for embedded examples. The pool’s embeddings are the same
across calls, so most users want Cached (the default).
Variants§
Fresh
Re-embed the pool on every select call. Slower but always
reflects a possibly-mutated pool.
Cached
Embed the pool once on first call and reuse. Use when the pool is stable for the lifetime of the selector.
Trait Implementations§
impl Copy for EmbedMode
impl Eq for EmbedMode
impl StructuralPartialEq for EmbedMode
Auto Trait Implementations§
impl Freeze for EmbedMode
impl RefUnwindSafe for EmbedMode
impl Send for EmbedMode
impl Sync for EmbedMode
impl Unpin for EmbedMode
impl UnsafeUnpin for EmbedMode
impl UnwindSafe for EmbedMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.