diff options
Diffstat (limited to 'mingling_core/src/program/setup.rs')
| -rw-r--r-- | mingling_core/src/program/setup.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mingling_core/src/program/setup.rs b/mingling_core/src/program/setup.rs index 86228b9..28aa49b 100644 --- a/mingling_core/src/program/setup.rs +++ b/mingling_core/src/program/setup.rs @@ -5,19 +5,20 @@ pub use basic::*; #[cfg(feature = "general_renderer")] mod general_renderer; + #[cfg(feature = "general_renderer")] pub use general_renderer::*; pub trait ProgramSetup<C> where - C: ProgramCollect, + C: ProgramCollect<Enum = C>, { fn setup(&mut self, program: &mut Program<C>); } impl<C> Program<C> where - C: ProgramCollect, + C: ProgramCollect<Enum = C>, { /// Load and execute init logic pub fn with_setup<S: ProgramSetup<C> + 'static>(&mut self, mut setup: S) -> S { |
