Trait IsAdmin

Source
pub trait IsAdmin: HasGeometry + HasProperties {
    // Required method
    fn name(&self) -> &str;
}
Expand description

A trait for types that are an admin and have a [Geometry].

Helps abstract away this property so the helper methods can be generalized.

Required Methods§

Source

fn name(&self) -> &str

Get the name of the IsAdmin.

Implementors§