Skip to main content

ToGeoJsonFeature

Trait ToGeoJsonFeature 

Source
pub trait ToGeoJsonFeature {
    // Required method
    fn to_feature(&self) -> Feature;
}
Expand description

A trait that allows types to be converted to GeoJSON.

Required Methods§

Source

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".

Implementors§