[][src]Struct osmpbfreader::objects::Way

pub struct Way {
    pub id: WayId,
    pub tags: Tags,
    pub nodes: Vec<NodeId>,
}

An OpenStreetMap way. See the OpenStreetMap wiki page about way for more information.

Fields

id: WayId

The id of the way.

tags: Tags

The tags of the way.

nodes: Vec<NodeId>

The ordered list of nodes as id.

Methods

impl Way[src]

pub fn is_open(&self) -> bool[src]

Returns true if the way is open.

pub fn is_closed(&self) -> bool[src]

Returns true if the way is closed.

Trait Implementations

impl Clone for Way[src]

impl Debug for Way[src]

impl<'de> Deserialize<'de> for Way[src]

impl Eq for Way[src]

impl From<Way> for OsmObj[src]

impl Hash for Way[src]

impl Ord for Way[src]

impl PartialEq<Way> for Way[src]

impl PartialOrd<Way> for Way[src]

impl Serialize for Way[src]

impl StructuralEq for Way[src]

impl StructuralPartialEq for Way[src]

Auto Trait Implementations

impl RefUnwindSafe for Way

impl Send for Way

impl Sync for Way

impl Unpin for Way

impl UnwindSafe for Way

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.