[][src]Enum osmpbf::elements::Element

pub enum Element<'a> {
    Node(Node<'a>),
    DenseNode(DenseNode<'a>),
    Way(Way<'a>),
    Relation(Relation<'a>),
}

An enum with the OSM core elements: nodes, ways and relations.

Variants

Node(Node<'a>)

A node. Also, see DenseNode.

DenseNode(DenseNode<'a>)

Just like Node, but with a different representation in memory. This distinction is usually not important but is not abstracted away to avoid copying. So, if you want to match Node, you also likely want to match DenseNode.

Way(Way<'a>)

A way.

Relation(Relation<'a>)

A relation.

Trait Implementations

impl<'a> Clone for Element<'a>[src]

impl<'a> Debug for Element<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Element<'a>

impl<'a> Send for Element<'a>

impl<'a> Sync for Element<'a>

impl<'a> Unpin for Element<'a>

impl<'a> UnwindSafe for Element<'a>

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, 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.