#[non_exhaustive]pub enum Overlay {
Polyline {
points: Vec<LngLat>,
color: Color,
width: f64,
},
Polygon {
points: Vec<LngLat>,
fill: Color,
stroke: Color,
width: f64,
},
Circle {
center: LngLat,
radius: f64,
fill: Color,
stroke: Color,
width: f64,
},
}Expand description
Geographic geometry in WGS84. Widths are logical points; circle radii are meters. Coordinates are normalized by the provider; empty lines/rings are ignored.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl StructuralPartialEq for Overlay
Auto Trait Implementations§
impl Forget for Overlay
impl Freeze for Overlay
impl Move for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
impl UnwindSafe for Overlay
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