rtz-core 0.2.0

The core functionality for `rtz`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The `shared` module.  Contains types and helpers pertinent to all admin implementations.

use crate::geo::shared::{HasGeometry, HasProperties};

// Types.

// Traits.

/// A trait for types that are an admin and have a [`Geometry`].
///
/// Helps abstract away this property so the helper methods can be generalized.
pub trait IsAdmin: HasGeometry + HasProperties {
    /// Get the `name` of the [`IsAdmin`].
    fn name(&self) -> &str;
}