pub struct PluginRegistry { /* private fields */ }Expand description
Plugin registry for managing custom SIMD operations
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn unregister(&self, name: &str) -> Result<(), PluginError>
pub fn unregister(&self, name: &str) -> Result<(), PluginError>
Unregister a plugin
Sourcepub fn execute_f32(
&self,
name: &str,
input: &[f32],
output: &mut [f32],
) -> Result<(), PluginError>
pub fn execute_f32( &self, name: &str, input: &[f32], output: &mut [f32], ) -> Result<(), PluginError>
Execute a plugin operation on f32 data
Sourcepub fn execute_f64(
&self,
name: &str,
input: &[f64],
output: &mut [f64],
) -> Result<(), PluginError>
pub fn execute_f64( &self, name: &str, input: &[f64], output: &mut [f64], ) -> Result<(), PluginError>
Execute a plugin operation on f64 data
Sourcepub fn get_stats(&self, name: &str) -> Option<ExecutionStats>
pub fn get_stats(&self, name: &str) -> Option<ExecutionStats>
Get execution statistics for a plugin
Sourcepub fn clear_stats(&self)
pub fn clear_stats(&self)
Clear execution statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PluginRegistry
impl RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl UnwindSafe for PluginRegistry
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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