Skip to main content

Embedder

Trait Embedder 

Source
pub trait Embedder {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn embed(&self, input: &str) -> Result<Embedding, Self::Error>;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn embed(&self, input: &str) -> Result<Embedding, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§