egml-core 0.0.2-alpha.6

Core primitives and operations for processing GML data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::model::xal::country_name::CountryName;

#[derive(Debug, Clone, PartialEq, Default)]
pub struct Country {
    name_elements: Vec<CountryName>,
}

impl Country {
    pub fn new(name_elements: Vec<CountryName>) -> Self {
        Self { name_elements }
    }

    pub fn name_elements(&self) -> &[CountryName] {
        &self.name_elements
    }
}