pub trait SemanticProvider {
// Required methods
fn metadata(&self) -> SemanticProviderMetadata;
fn extract_concepts(
&self,
input: &SemanticProviderInput,
) -> Result<Vec<SemanticConceptCandidate>>;
fn embed(&self, input: &str) -> Result<SemanticEmbedding>;
}Required Methods§
fn metadata(&self) -> SemanticProviderMetadata
fn extract_concepts( &self, input: &SemanticProviderInput, ) -> Result<Vec<SemanticConceptCandidate>>
fn embed(&self, input: &str) -> Result<SemanticEmbedding>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".