Skip to main content

rtz_core/geo/tz/
shared.rs

1//! The `shared` module.  Contains types and helpers pertinent to all TZ implementations.
2
3use crate::geo::shared::{HasGeometry, HasProperties};
4
5// Types.
6
7// Traits.
8
9/// A trait for types that are a timezone and have a [`Geometry`].
10///
11/// Helps abstract away this property so the helper methods can be generalized.
12pub trait IsTimezone: HasGeometry + HasProperties {
13    /// Get the `identifier` of the [`IsTimezone`].
14    fn identifier(&self) -> &str;
15}