Skip to main content

AlgorithmHost

Trait AlgorithmHost 

Source
pub trait AlgorithmHost: Send + Sync {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

Opaque host callback surfacing graph access to plugin algorithms.

Hosts implement this trait; bridges (e.g. uni-plugin-builtin) downcast via AlgorithmHost::as_any to recover the concrete host type and its StorageManager / L0Manager handles. Keeps uni-plugin free of upward dependencies on uni-store / uni-algo.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Downcast hook — bridges implement this to expose the concrete host type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§