pub fn role_alive(&self, role: Role) -> bool {
        self.iter().any(|universe| {
            universe.roles.iter().enumerate().any(|(player_idx, &iter_role)|
                role == iter_role && (
                    universe.alive[player_idx] ||
                    self.role(player_idx).is_none()
                )
            )
        })
    }
/// Whether or not there is at least one player who may be alive and may have this role.
///
/// Note that this may return true even if this role is dead in all universes, namely if there are multiple players who may have that role.
Whether or not there is at least one player who may be alive and may have this role.
Note that this may return true even if this role is dead in all universes, namely if there are multiple players who may have that role.
Whether or not there is at least one player who may be alive and may have this role . Note that this may return true even if this role is dead in all universes namely if there are multiple players who may have that role .
pub fn role_alive(&self, role: Role) -> bool {
        self.iter().any(|universe| {
            universe.roles.iter().enumerate().any(|(player_idx, &iter_role)|
                role == iter_role && (
                    universe.alive[player_idx] ||
                    self.role(player_idx).is_none()
                )
            )
        })
    }
pub fn role_alive ( & self , role : Role ) -> bool { self . iter ( ) . any ( | universe | { universe . roles . iter ( ) . enumerate ( ) . any ( | ( player_idx , & iter_role ) | role == iter_role && ( universe . alive [ player_idx ] || self . role ( player_idx ) . is_none ( ) ) ) } ) }
Whether or not there is at least one player who may be alive and may have this role.
Whether or not there is at least one player who may be alive and may have this role .
&self
role
Role
&self
role
Role