pub struct Way {
pub nodes: Vec<ReferencedNode>,
pub metadata: ElementMetadata,
pub tags: Vec<Tag>,
}
Expand description
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 StructuralPartialEq for Way
Auto Trait Implementations§
impl Freeze for Way
impl RefUnwindSafe for Way
impl Send for Way
impl Sync for Way
impl Unpin for Way
impl UnwindSafe for Way
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