[][src]Enum kml::Kml

#[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>>,
    },
    Element(Element),
}

Represents 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>>
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
[src]

impl<T> Send for Kml<T> where
    T: Send
[src]

impl<T> Sync for Kml<T> where
    T: Sync
[src]

impl<T> Unpin for Kml<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Kml<T> where
    T: UnwindSafe
[src]

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.