1
0
forked from ROMEO/nexosim

Report panics as errors + identify panicking model

The build context is now passed as a mutable reference due to the need
to mutate data when adding a model.

Contains small unrelated cleanups and documentation improvements too.
This commit is contained in:
Serge Barral
2024-11-13 19:21:54 +01:00
parent e6f77ea8e5
commit ba1e668447
21 changed files with 437 additions and 229 deletions

View File

@ -69,7 +69,7 @@
//! impl ProtoModel for ProtoParentModel {
//! type Model = ParentModel;
//!
//! fn build(self, ctx: &BuildContext<Self>) -> ParentModel {
//! fn build(self, ctx: &mut BuildContext<Self>) -> ParentModel {
//! let mut child = ChildModel::new(self.output.clone());
//!
//! ctx.add_submodel(child, Mailbox::new(), "child");