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

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

An OpenStreetMap object.

Variants

A node

A way

A relation

Methods

impl OsmObj
[src]

Returns the tags of the object.

Returns the id of the object.

Returns true if the object is a node.

Returns true if the object is a way.

Returns true if the object is a relation.

Gets a reference to the node in an Option.

Gets a reference to the way in an Option.

Gets a reference to the relation in an Option.

Trait Implementations

impl Debug for OsmObj
[src]

Formats the value using the given formatter.

impl PartialEq for OsmObj
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for OsmObj
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Clone for OsmObj
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Node> for OsmObj
[src]

Performs the conversion.

impl From<Way> for OsmObj
[src]

Performs the conversion.

impl From<Relation> for OsmObj
[src]

Performs the conversion.