lenna_core 0.1.3

Lenna is a library for image processing algorithms and apps.
Documentation
use crate::core::pool::Pool;
use crate::core::processor::Processor;

#[derive(Copy, Clone)]
pub struct PluginDeclaration {
    pub rustc_version: &'static str,
    pub core_version: &'static str,
    pub register: unsafe extern "C" fn(&mut dyn PluginRegistrar),
}

pub trait PluginRegistrar {
    fn add_plugin(&mut self, plugin: Box<dyn Processor>);
}

impl PluginRegistrar for Pool {
    fn add_plugin(&mut self, plugin: Box<dyn Processor>) {
        self.add(plugin)
    }
}

#[cfg(not(target_arch = "wasm32"))]
pub mod c;

#[cfg(feature = "python")]
pub mod python;

pub mod wasm;