pub struct MapRegistry {
pub maps: BTreeMap<String, MapData>,
}Expand description
The maps a chart can draw.
The registry is what turns a map series into a picture: the series names the map it wants, and the registry holds the geometry. The geometry is kept out of the option on purpose — a map of a country is megabytes of coordinates, and it is the same for every chart that draws it.
Fields§
§maps: BTreeMap<String, MapData>The maps of the registry, by name.
Implementations§
Source§impl MapRegistry
Inherent implementation of MapRegistry.
impl MapRegistry
Inherent implementation of MapRegistry.
Sourcepub fn register_geojson(
&mut self,
name: &str,
value: &DataValue,
) -> Result<&mut Self, GeoError>
pub fn register_geojson( &mut self, name: &str, value: &DataValue, ) -> Result<&mut Self, GeoError>
Trait Implementations§
Source§impl Clone for MapRegistry
impl Clone for MapRegistry
Source§impl Debug for MapRegistry
impl Debug for MapRegistry
Source§impl Default for MapRegistry
impl Default for MapRegistry
Source§impl PartialEq for MapRegistry
impl PartialEq for MapRegistry
impl StructuralPartialEq for MapRegistry
Auto Trait Implementations§
impl Freeze for MapRegistry
impl RefUnwindSafe for MapRegistry
impl Send for MapRegistry
impl Sync for MapRegistry
impl Unpin for MapRegistry
impl UnsafeUnpin for MapRegistry
impl UnwindSafe for MapRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more