[][src]Struct osm_primitives::Way

pub struct Way {
    pub nodes: Vec<ReferencedNode>,
    pub metadata: ElementMetadata,
    pub tags: Vec<Tag>,
}

A way is an ordered list of nodes which normally also has at least one tag or is included within a Relation. It can be open or closed, a closed way is one whose last nodes on the way is also the first on that way. A closed way may be interpreted as a closed polyline, a polygon, or both.

Openstreetmap wiki

Note that this library does not impose any upper limit for the size of a way, as the 2000-node-limit is considered an API limit

Fields

nodes: Vec<ReferencedNode>metadata: ElementMetadatatags: Vec<Tag>

Trait Implementations

impl Clone for Way[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Way> for Element[src]

impl PartialEq<Way> for Way[src]

impl Debug for Way[src]

Auto Trait Implementations

impl Send for Way

impl Sync for Way

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.