Enum osmpbf::elements::Element [−][src]
pub enum Element<'a> {
Node(Node<'a>),
DenseNode(DenseNode<'a>),
Way(Way<'a>),
Relation(Relation<'a>),
}
Expand description
An enum with the OSM core elements: nodes, ways and relations.
Variants
Node(Node<'a>)
Tuple Fields
0: Node<'a>
A node. Also, see DenseNode
.
DenseNode(DenseNode<'a>)
Tuple Fields
0: 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>)
Tuple Fields
0: Way<'a>
A way.
Relation(Relation<'a>)
Tuple Fields
0: Relation<'a>
A relation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Element<'a>
impl<'a> UnwindSafe for Element<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more