pub struct H3EdgeGraph<W> {
    pub edges: H3EdgeMap<W>,
    pub h3_resolution: u8,
}

Fields

edges: H3EdgeMap<W>h3_resolution: u8

Implementations

This has to generate the node list first, so its rather expensive to call.

get all edges in the graph leading from this edge to neighbors

get all edges in the graph leading to this cell from its neighbors

cells which are valid targets to route to

This is a rather expensive operation as nodes are not stored anywhere and need to be extracted from the edges.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
calculates a MultiPolygon of the area covered by a graph Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Gets the index resolution (0-15)
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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 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
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.