pub fn on_trace_added(&self, trace: Trace) {
        self.traces_meta.lock_mut().push_cloned(TraceMeta::new());

        self.history.push_modify(move |raw| {
            if let Some(content) = &mut raw.content {
                content.traces.push(trace);
            }
        });
    }
/*
     * The traces themselves are managed by the component
     * Callbacks here are fired from there and need only to manage
     * meta and history
     */
The traces themselves are managed by the component
Callbacks here are fired from there and need only to manage
meta and history
The traces themselves are managed by the component Callbacks here are fired from there and need only to manage meta and history
pub fn on_trace_added(&self, trace: Trace) {
        self.traces_meta.lock_mut().push_cloned(TraceMeta::new());
        self.history.push_modify(move |raw| {
            if let Some(content) = &mut raw.content {
                content.traces.push(trace);
            }
        });
    }
pub fn on_trace_added ( & self , trace : Trace ) { self . traces_meta . lock_mut ( ) . push_cloned ( TraceMeta :: new ( ) ) ; self . history . push_modify ( move | raw | { if let Some ( content ) = & mut raw . content { content . traces . push ( trace ) ; } } ) ; }
The traces themselves are managed by the component
 Callbacks here are fired from there and need only to manage
 meta and history
The traces themselves are managed by the component Callbacks here are fired from there and need only to manage meta and history
&self
trace
Trace
&self
trace
Trace