pub trait SimilaritySessionResolverType: Sync + 'static {
type SimilaritySessionResolver: SimilaritySessionResolver;
const NAME: &'static str;
const DESCRIPTION: &'static str;
// Required methods
fn create_resolver(
&self,
session: &SimilaritySession,
settings: &Settings,
) -> Self::SimilaritySessionResolver;
fn default_settings(&self) -> Option<Ref<Settings>>;
}Expand description
Creates similarity result resolvers with the given settings.
Required Associated Constants§
Sourceconst DESCRIPTION: &'static str
const DESCRIPTION: &'static str
A short description of the resolver.
Required Associated Types§
Required Methods§
Sourcefn create_resolver(
&self,
session: &SimilaritySession,
settings: &Settings,
) -> Self::SimilaritySessionResolver
fn create_resolver( &self, session: &SimilaritySession, settings: &Settings, ) -> Self::SimilaritySessionResolver
Creates a resolver for a session.
Sourcefn default_settings(&self) -> Option<Ref<Settings>>
fn default_settings(&self) -> Option<Ref<Settings>>
Returns the settings used to configure new resolvers, if any.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".