pub fn peer_mut(&mut self, idx: PeerID) -> Option<&mut Peer<T>> {
        if idx.0 >= self.peer_count() {
            return None;
        }

        Some(Peer::new_mut(unsafe {
            &mut *((*self.inner).peers.offset(idx.0 as isize))
        }))
    }
/// Returns a mutable reference to a peer at the index, None if the index is invalid.
Returns a mutable reference to a peer at the index, None if the index is invalid.
Returns a mutable reference to a peer at the index None if the index is invalid .
pub fn peer_mut(&mut self, idx: PeerID) -> Option<&mut Peer<T>> {
        if idx.0 >= self.peer_count() {
            return None;
        }
        Some(Peer::new_mut(unsafe {
            &mut *((*self.inner).peers.offset(idx.0 as isize))
        }))
    }
pub fn peer_mut ( & mut self , idx : PeerID ) -> Option < & mut Peer < T > > { if idx . 0 >= self . peer_count ( ) { return None ; } Some ( Peer :: new_mut ( unsafe { & mut * ( ( * self . inner ) . peers . offset ( idx . 0 as isize ) ) } ) ) }
Returns a mutable reference to a peer at the index, None if the index is invalid.
Returns a mutable reference to a peer at the index None if the index is invalid .
&mut self
idx
PeerID
&mut self
idx
PeerID