[][src]Enum osmpbfreader::objects::OsmObj

pub enum OsmObj {
    Node(Node),
    Way(Way),
    Relation(Relation),
}

An OpenStreetMap object.

Variants

Node(Node)

A node

Way(Way)

A way

Relation(Relation)

A relation

Methods

impl OsmObj[src]

pub fn tags(&self) -> &Tags[src]

Returns the tags of the object.

pub fn id(&self) -> OsmId[src]

Returns the id of the object.

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

Returns true if the object is a node.

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

Returns true if the object is a way.

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

Returns true if the object is a relation.

pub fn node(&self) -> Option<&Node>[src]

Gets a reference to the node in an Option.

pub fn way(&self) -> Option<&Way>[src]

Gets a reference to the way in an Option.

pub fn relation(&self) -> Option<&Relation>[src]

Gets a reference to the relation in an Option.

Trait Implementations

impl PartialEq<OsmObj> for OsmObj[src]

impl Clone for OsmObj[src]

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

Performs copy-assignment from source. Read more

impl From<Node> for OsmObj[src]

impl From<Way> for OsmObj[src]

impl From<Relation> for OsmObj[src]

impl PartialOrd<OsmObj> for OsmObj[src]

impl Debug for OsmObj[src]

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

impl Serialize for OsmObj[src]

Auto Trait Implementations

impl Send for OsmObj

impl Sync for OsmObj

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.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]