Struct kml::types::KmlDocument
source · pub struct KmlDocument<T: CoordType = f64> {
pub version: KmlVersion,
pub attrs: HashMap<String, String>,
pub elements: Vec<Kml<T>>,
}
Expand description
Container for KML root element
Fields§
§version: KmlVersion
§attrs: HashMap<String, String>
§elements: Vec<Kml<T>>
Trait Implementations§
source§impl<T: Clone + CoordType> Clone for KmlDocument<T>
impl<T: Clone + CoordType> Clone for KmlDocument<T>
source§fn clone(&self) -> KmlDocument<T>
fn clone(&self) -> KmlDocument<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Default + CoordType> Default for KmlDocument<T>
impl<T: Default + CoordType> Default for KmlDocument<T>
source§fn default() -> KmlDocument<T>
fn default() -> KmlDocument<T>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq + CoordType> PartialEq for KmlDocument<T>
impl<T: PartialEq + CoordType> PartialEq for KmlDocument<T>
source§fn eq(&self, other: &KmlDocument<T>) -> bool
fn eq(&self, other: &KmlDocument<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: CoordType> StructuralPartialEq for KmlDocument<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for KmlDocument<T>where
T: RefUnwindSafe,
impl<T> Send for KmlDocument<T>where
T: Send,
impl<T> Sync for KmlDocument<T>where
T: Sync,
impl<T> Unpin for KmlDocument<T>where
T: Unpin,
impl<T> UnwindSafe for KmlDocument<T>where
T: UnwindSafe,
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