Skip to main content

SimilaritySessionResolverType

Trait SimilaritySessionResolverType 

Source
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§

Source

const NAME: &'static str

The resolver name shown to users.

Source

const DESCRIPTION: &'static str

A short description of the resolver.

Required Associated Types§

Required Methods§

Source

fn create_resolver( &self, session: &SimilaritySession, settings: &Settings, ) -> Self::SimilaritySessionResolver

Creates a resolver for a session.

Source

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", so this trait is not object safe.

Implementors§