Struct libosmium::NodeRef

source ·
#[repr(C)]
pub struct NodeRef { pub id: i64, pub location: MaybeUninit<Location>, }
Expand description

Reference to a Node

This is basically just the node’s id so you could look it up if you had them all cached. But it also contains a second field to be able to store a location, if it so happens to be known.

Fields§

§id: i64

The Node’s id

§location: MaybeUninit<Location>

The Node’s location if known

Implementations§

Check if a valid location is set and return it.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.