pub trait Model: Module{
type Ctx;
type Data;
// Required methods
fn children(&self) -> Vec<ModuleDyn<Self::Ctx, Self::Params>>;
fn context(&self) -> Self::Ctx;
}Required Associated Types§
Required Methods§
fn children(&self) -> Vec<ModuleDyn<Self::Ctx, Self::Params>>
fn context(&self) -> Self::Ctx
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.