Enum kml::Kml[][src]

#[non_exhaustive]pub enum Kml<T: CoordType = f64> {
    KmlDocument(KmlDocument<T>),
    Point(Point<T>),
    LineString(LineString<T>),
    LinearRing(LinearRing<T>),
    Polygon(Polygon<T>),
    MultiGeometry(MultiGeometry<T>),
    Placemark(Placemark<T>),
    Document {
        attrs: HashMap<String, String>,
        elements: Vec<Kml<T>>,
    },
    Folder {
        attrs: HashMap<String, String>,
        elements: Vec<Kml<T>>,
    },
    Style(Style),
    StyleMap(StyleMap),
    Pair(Pair),
    BalloonStyle(BalloonStyle),
    IconStyle(IconStyle),
    Icon(Icon),
    LabelStyle(LabelStyle),
    LineStyle(LineStyle),
    PolyStyle(PolyStyle),
    ListStyle(ListStyle),
    Element(Element),
}

Enum for representing any KML element

Variants (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.
KmlDocument(KmlDocument<T>)
Point(Point<T>)
LineString(LineString<T>)
LinearRing(LinearRing<T>)
Polygon(Polygon<T>)
MultiGeometry(MultiGeometry<T>)
Placemark(Placemark<T>)
Document

Fields of Document

attrs: HashMap<String, String>elements: Vec<Kml<T>>
Folder

Fields of Folder

attrs: HashMap<String, String>elements: Vec<Kml<T>>
Style(Style)
StyleMap(StyleMap)
Pair(Pair)
BalloonStyle(BalloonStyle)
IconStyle(IconStyle)
Icon(Icon)
LabelStyle(LabelStyle)
LineStyle(LineStyle)
PolyStyle(PolyStyle)
ListStyle(ListStyle)
Element(Element)

Trait Implementations

impl<T: Clone + CoordType> Clone for Kml<T>[src]

impl<T: Debug + CoordType> Debug for Kml<T>[src]

impl<T> Display for Kml<T> where
    T: CoordType + Default + FromStr + Display
[src]

impl<T> FromStr for Kml<T> where
    T: CoordType + FromStr + Default
[src]

type Err = Error

The associated error which can be returned from parsing.

impl<T: PartialEq + CoordType> PartialEq<Kml<T>> for Kml<T>[src]

impl<T: CoordType> StructuralPartialEq for Kml<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Kml<T> where
    T: RefUnwindSafe

impl<T> Send for Kml<T> where
    T: Send

impl<T> Sync for Kml<T> where
    T: Sync

impl<T> Unpin for Kml<T> where
    T: Unpin

impl<T> UnwindSafe for Kml<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.