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

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