compose_library/
engine.rs

1use compose_library::{Routines, Sink, SyntaxContext, World};
2use std::fmt::Debug;
3
4pub struct Engine<'a> {
5    pub routines: Routines,
6    pub world: &'a dyn World,
7    pub sink: Sink,
8}
9
10impl<'a> Engine<'a> {
11    pub fn syntax_ctx(&self) -> SyntaxContext {
12        SyntaxContext {
13            world: self.world
14        }
15    }
16}
17
18impl Debug for Engine<'_> {
19    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
20        f.debug_struct("Engine")
21            .field("sink", &self.sink)
22            .finish()
23    }
24}
25
26pub struct Routes {
27    
28}
29