pub struct BoxedEmbedder<F>{ /* private fields */ }Expand description
Adapter that wraps any Fn(&[&str]) -> Vec<Vec<f32>> closure into
an Embedder.
Useful when the embedding source is an HTTP client, an ONNX session, a Python callback (via PyO3), or any other resource the caller already manages.
Implementations§
Source§impl<F> BoxedEmbedder<F>
impl<F> BoxedEmbedder<F>
Trait Implementations§
Source§impl<F> Embedder for BoxedEmbedder<F>
impl<F> Embedder for BoxedEmbedder<F>
Auto Trait Implementations§
impl<F> Freeze for BoxedEmbedder<F>where
F: Freeze,
impl<F> RefUnwindSafe for BoxedEmbedder<F>where
F: RefUnwindSafe,
impl<F> Send for BoxedEmbedder<F>
impl<F> Sync for BoxedEmbedder<F>
impl<F> Unpin for BoxedEmbedder<F>where
F: Unpin,
impl<F> UnsafeUnpin for BoxedEmbedder<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for BoxedEmbedder<F>where
F: 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