pub trait ToGeoJsonFeature {
// Required method
fn to_feature(&self) -> Feature;
}Expand description
A trait that allows types to be converted to GeoJSON.
Required Methods§
Sourcefn to_feature(&self) -> Feature
fn to_feature(&self) -> Feature
Convert the type to GeoJSON.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".