pub fn new_socket(&mut self) -> Rc<RefCell<Socket>> {
        let socket = Rc::new(RefCell::new(Socket::new()));
        self.sockets.push(socket);
        // unwrap because we just pushed a value so there's no reason to get a None here
        self.sockets.last_mut().unwrap().clone()
    }
/// Create a new socket and return it
/// Note that you'll have to plug a chip on it before linking it with the traces
Create a new socket and return it
Note that you'll have to plug a chip on it before linking it with the traces
Create a new socket and return it Note that you ' ll have to plug a chip on it before linking it with the traces
pub fn new_socket(&mut self) -> Rc<RefCell<Socket>> {
        let socket = Rc::new(RefCell::new(Socket::new()));
        self.sockets.push(socket);
        // unwrap because we just pushed a value so there's no reason to get a None here
        self.sockets.last_mut().unwrap().clone()
    }
pub fn new_socket ( & mut self ) -> Rc < RefCell < Socket > > { let socket = Rc :: new ( RefCell :: new ( Socket :: new ( ) ) ) ; self . sockets . push ( socket ) ; // unwrap because we just pushed a value so there's no reason to get a None here self . sockets . last_mut ( ) . unwrap ( ) . clone ( ) }
Create a new socket and return it
Note that you'll have to plug a chip on it before linking it with the traces
Create a new socket and return it Note that you ' ll have to plug a chip on it before linking it with the traces
&mut self
&mut self