diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-22 13:27:43 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-22 13:30:13 +0800 |
| commit | 3785202ec5b949cba5501b20729b16f4c29ea626 (patch) | |
| tree | 2a276df54128e73557463af54d626a1a7c250e94 /mingling_core/src/program/setup.rs | |
| parent | c2f9fb47832c5e12fe37762616c81b016de00464 (diff) | |
Add new_with_args and dispatch_args_dynamic to Program
Remove Display bound from Group type parameter and delete
dispatcher_render macro. This is a breaking change.
Diffstat (limited to 'mingling_core/src/program/setup.rs')
| -rw-r--r-- | mingling_core/src/program/setup.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mingling_core/src/program/setup.rs b/mingling_core/src/program/setup.rs index 7b534f3..f095ed3 100644 --- a/mingling_core/src/program/setup.rs +++ b/mingling_core/src/program/setup.rs @@ -1,5 +1,3 @@ -use std::fmt::Display; - use crate::{ProgramCollect, program::Program}; mod basic; @@ -13,7 +11,6 @@ pub use general_renderer::*; pub trait ProgramSetup<C, G> where C: ProgramCollect, - G: Display, { fn setup(&mut self, program: &mut Program<C, G>); } @@ -21,7 +18,6 @@ where impl<C, G> Program<C, G> where C: ProgramCollect, - G: Display, { /// Load and execute init logic pub fn with_setup<S: ProgramSetup<C, G> + 'static>(&mut self, mut setup: S) -> S { |
