pub trait ImageEmbedder: Send + Sync {
// Required method
fn embed_images(&self, images: &[Vec<u8>]) -> Result<Vec<Vec<f32>>>;
// Provided method
fn model_id(&self) -> Option<&str> { ... }
}Expand description
Minimal image embedder interface (bytes -> vectors).
images are opaque bytes (e.g. JPEG/PNG). Format detection/decoding is backend-specific.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".