pub struct LinearKernelPlugin;Expand description
Example plugin implementing a simple linear kernel approximation
Trait Implementations§
Source§impl KernelApproximationPlugin for LinearKernelPlugin
impl KernelApproximationPlugin for LinearKernelPlugin
Source§fn metadata(&self) -> PluginMetadata
fn metadata(&self) -> PluginMetadata
Get plugin metadata
Source§fn create(
&self,
config: PluginConfig,
) -> Result<Box<dyn KernelApproximationInstance>, PluginError>
fn create( &self, config: PluginConfig, ) -> Result<Box<dyn KernelApproximationInstance>, PluginError>
Create a new instance of the plugin with given configuration
Source§fn validate_config(&self, config: &PluginConfig) -> Result<(), PluginError>
fn validate_config(&self, config: &PluginConfig) -> Result<(), PluginError>
Validate configuration
Source§fn default_config(&self) -> PluginConfig
fn default_config(&self) -> PluginConfig
Get default configuration
Auto Trait Implementations§
impl Freeze for LinearKernelPlugin
impl RefUnwindSafe for LinearKernelPlugin
impl Send for LinearKernelPlugin
impl Sync for LinearKernelPlugin
impl Unpin for LinearKernelPlugin
impl UnwindSafe for LinearKernelPlugin
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
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