pub trait DataPlugin: Any {
type DataContainer;
// Required method
fn create_data_container() -> Self::DataContainer;
}
Expand description
A trait for objects that can provide data containers to be held by Context
Required Associated Types§
type DataContainer
Required Methods§
fn create_data_container() -> Self::DataContainer
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.