pub fn majority_religion(
tables: &StartposTables,
region: &RegionEntry,
) -> Result<Option<String>>Expand description
Returns the religion with the largest share of a region, the first in table order on ties.
§Arguments
tables- Tables withstart_pos_region_religions.region- The region.
§Returns
The religion key, or None if the region has no religion rows.
§Errors
Returns an error if a table or column is missing.