Trait Model

Source
pub trait Model: Module
where Self: Forward<Self::Data>,
{ 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§

Source

fn children(&self) -> Vec<ModuleDyn<Self::Ctx, Self::Params>>

Source

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.

Implementors§