Struct osmpbf::dense::DenseNode[][src]

pub struct DenseNode<'a> {
    pub id: i64,
    // some fields omitted
}
Expand description

An OpenStreetMap node element from a compressed array of dense nodes (See OSM wiki).

Fields

id: i64

The node id. It should be unique between nodes and might be negative to indicate that the element has not yet been uploaded to a server.

Implementations

Returns the node id. It should be unique between nodes and might be negative to indicate that the element has not yet been uploaded to a server.

return optional metadata about the ndode

Returns the latitude coordinate in degrees.

Returns the latitude coordinate in nanodegrees (10⁻⁹).

Returns the latitude coordinate in decimicrodegrees (10⁻⁷).

Returns the longitude coordinate in degrees.

Returns the longitude in nanodegrees (10⁻⁹).

Returns the longitude coordinate in decimicrodegrees (10⁻⁷).

Returns an iterator over the tags of this node (See OSM wiki).

Returns an iterator over the tags of this node (See OSM wiki). A tag is represented as a pair of indices (key and value) to the stringtable of the current PrimitiveBlock.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.