pub struct CoreSimilaritySessionResolverType { /* private fields */ }Expand description
A registered similarity session resolver type.
Implementations§
Source§impl CoreSimilaritySessionResolverType
impl CoreSimilaritySessionResolverType
pub unsafe fn from_raw(handle: *mut BNSimilaritySessionResolverType) -> Self
Sourcepub fn all() -> Array<CoreSimilaritySessionResolverType>
pub fn all() -> Array<CoreSimilaritySessionResolverType>
Returns all registered resolver types.
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns the resolver description.
Sourcepub fn create_resolver(
&self,
session: &SimilaritySession,
settings: &Settings,
) -> Option<Ref<CoreSimilaritySessionResolver>>
pub fn create_resolver( &self, session: &SimilaritySession, settings: &Settings, ) -> Option<Ref<CoreSimilaritySessionResolver>>
Creates a resolver for a session, if supported.
Sourcepub fn default_settings(&self) -> Option<Ref<Settings>>
pub fn default_settings(&self) -> Option<Ref<Settings>>
Returns the default resolver settings, if available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreSimilaritySessionResolverType
impl RefUnwindSafe for CoreSimilaritySessionResolverType
impl !Send for CoreSimilaritySessionResolverType
impl !Sync for CoreSimilaritySessionResolverType
impl Unpin for CoreSimilaritySessionResolverType
impl UnsafeUnpin for CoreSimilaritySessionResolverType
impl UnwindSafe for CoreSimilaritySessionResolverType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more