[−][src]Struct osm_primitives::Way
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.
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: ElementMetadata
Trait Implementations
impl PartialEq<Way> for Way
[src]
impl Clone for Way
[src]
fn clone(&self) -> 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 Debug for Way
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,