Enum osmpbfreader::objects::OsmId [] [src]

pub enum OsmId {
    Node(NodeId),
    Way(WayId),
    Relation(RelationId),
}

An OpenStreetMap object identifier

Variants

The identifier of a node

The identifier of a way

The identifier of a relation

Methods

impl OsmId
[src]

Returns true if the id is a node id.

Returns true if the id is a way id.

Returns true if the id is a relation id.

Returns the NodeId wrapped in an Option.

Returns the WayId wrapped in an Option.

Returns the RelationId wrapped in an Option.

Trait Implementations

impl Debug for OsmId
[src]

Formats the value using the given formatter.

impl PartialEq for OsmId
[src]

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

This method tests for !=.

impl Eq for OsmId
[src]

impl PartialOrd for OsmId
[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 Ord for OsmId
[src]

This method returns an Ordering between self and other. Read more

impl Clone for OsmId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for OsmId
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Copy for OsmId
[src]

impl From<NodeId> for OsmId
[src]

Performs the conversion.

impl From<WayId> for OsmId
[src]

Performs the conversion.

impl From<RelationId> for OsmId
[src]

Performs the conversion.