[−][src]Struct osmpbf::dense::DenseNode
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.
version: i32
The version of this element.
changeset: i64
The changeset id.
uid: i32
The user id.
Methods
impl<'a> DenseNode<'a>
[src]
pub fn user(&self) -> Result<&'a str>
[src]
Returns the user name.
pub fn lat(&self) -> f64
[src]
Returns the latitude coordinate in degrees.
pub fn lon(&self) -> f64
[src]
Returns the longitude coordinate in degrees.
pub fn milli_timestamp(&self) -> i64
[src]
Returns the time stamp in milliseconds since the epoch.
ⓘImportant traits for DenseTagIter<'a>pub fn tags(&self) -> DenseTagIter<'a>
[src]
Returns an iterator over the tags of this node (See OSM wiki).
ⓘImportant traits for DenseRawTagIter<'a>pub fn raw_tags(&self) -> DenseRawTagIter<'a>
[src]
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for DenseNode<'a>
impl<'a> Send for DenseNode<'a>
impl<'a> Sync for DenseNode<'a>
impl<'a> Unpin for DenseNode<'a>
impl<'a> UnwindSafe for DenseNode<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,