pub fn role(&self, player_idx: usize) -> Option<Role> {
        let role = self.0[0].roles[player_idx];
        if self.0[1..].iter().all(|universe| universe.roles[player_idx] == role) {
            Some(role)
        } else {
            None
        }
    }
/// Returns the role of the given player, if that role is unambiguous.
Returns the role of the given player, if that role is unambiguous.
Returns the role of the given player if that role is unambiguous .
pub fn role(&self, player_idx: usize) -> Option<Role> {
        let role = self.0[0].roles[player_idx];
        if self.0[1..].iter().all(|universe| universe.roles[player_idx] == role) {
            Some(role)
        } else {
            None
        }
    }
pub fn role ( & self , player_idx : usize ) -> Option < Role > { let role = self . 0 [ 0 ] . roles [ player_idx ] ; if self . 0 [ 1 .. ] . iter ( ) . all ( | universe | universe . roles [ player_idx ] == role ) { Some ( role ) } else { None } }
Returns the role of the given player, if that role is unambiguous.
Returns the role of the given player if that role is unambiguous .
&self
player_idx
usize
&self
player_idx
usize