pub struct CoreSimilarityProviderType { /* private fields */ }Expand description
A registered similarity provider type.
Implementations§
Source§impl CoreSimilarityProviderType
impl CoreSimilarityProviderType
pub unsafe fn from_raw(handle: *mut BNSimilarityProviderType) -> Self
Sourcepub fn by_name(name: &str) -> Option<CoreSimilarityProviderType>
pub fn by_name(name: &str) -> Option<CoreSimilarityProviderType>
Returns a registered provider type by name.
Sourcepub fn all() -> Array<CoreSimilarityProviderType>
pub fn all() -> Array<CoreSimilarityProviderType>
Returns all registered provider types.
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns the provider description.
Sourcepub fn create_provider(
&self,
settings: &Settings,
) -> Option<Ref<CoreSimilarityProvider>>
pub fn create_provider( &self, settings: &Settings, ) -> Option<Ref<CoreSimilarityProvider>>
Creates a provider with the given settings, if supported. Returns None outside Ultimate.
Sourcepub fn default_settings(&self) -> Option<Ref<Settings>>
pub fn default_settings(&self) -> Option<Ref<Settings>>
Returns the default provider settings, if available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreSimilarityProviderType
impl RefUnwindSafe for CoreSimilarityProviderType
impl !Send for CoreSimilarityProviderType
impl !Sync for CoreSimilarityProviderType
impl Unpin for CoreSimilarityProviderType
impl UnsafeUnpin for CoreSimilarityProviderType
impl UnwindSafe for CoreSimilarityProviderType
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