pub fn run(&mut self, time_elapsed: Duration) {
        // TODO: find a way to update the traces accurately
        // current issue : the order of the traces affects the order of the links
        for trc in self.traces.iter_mut() {
            trc.borrow_mut().communicate();
        }
        for skt in self.sockets.iter_mut() {
            skt.borrow_mut().run(time_elapsed);
        }
    }
/// Run the circuit for a certain amount of time
/// You must use `use_during` since it provides more accurate simulation by stepping
Run the circuit for a certain amount of time
You must use `use_during` since it provides more accurate simulation by stepping
Run the circuit for a certain amount of time You must use ` use_during ` since it provides more accurate simulation by stepping
pub fn run(&mut self, time_elapsed: Duration) {
        // TODO: find a way to update the traces accurately
        // current issue : the order of the traces affects the order of the links
        for trc in self.traces.iter_mut() {
            trc.borrow_mut().communicate();
        }
        for skt in self.sockets.iter_mut() {
            skt.borrow_mut().run(time_elapsed);
        }
    }
pub fn run ( & mut self , time_elapsed : Duration ) { // TODO: find a way to update the traces accurately // current issue : the order of the traces affects the order of the links for trc in self . traces . iter_mut ( ) { trc . borrow_mut ( ) . communicate ( ) ; } for skt in self . sockets . iter_mut ( ) { skt . borrow_mut ( ) . run ( time_elapsed ) ; } }
Run the circuit for a certain amount of time
You must use `use_during` since it provides more accurate simulation by stepping
Run the circuit for a certain amount of time You must use ` use_during ` since it provides more accurate simulation by stepping
&mut self
time_elapsed
Duration
&mut self
time_elapsed
Duration