Struct h3ron::H3Cell [−][src]
#[repr(transparent)]pub struct H3Cell(_);
Expand description
H3 Index representing a H3 Cell (hexagon)
Implementations
Build a new Index
from a Point
.
Returns
The built index may be invalid.
Use the from_point
method for validity check.
Build a new Index
from a Point
.
Returns
If the built index is invalid, returns an Error.
Use the from_point_unchecked
to avoid error.
Build a new Index
from coordinates.
Returns
The built index may be invalid.
Use the from_coordinate
method for validity check.
Build a new Index
from coordinates.
Returns
If the built index is invalid, returns an Error.
Use the from_coordinate_unchecked
to avoid error.
Checks if the current index and other
are neighbors.
Retrieves the number of K Rings between self
and other
.
For distance in miles or kilometers use haversine algorithms.
exact area for a specific cell (hexagon or pentagon)
determines if an H3 cell is a pentagon
returns the base cell “number” (0 to 121) of the provided H3 cell
Gets the unidirectional edge from self
to destination
Returns
The built index may be invalid.
Use the unidirectional_edge_to_unchecked
method for validity check.
Gets the unidirectional edge from self
to destination
Returns
If the built index is invalid, returns an Error.
Use the unidirectional_edge_to_unchecked
to avoid error.
Retrieves all unidirectional H3 edges around self
Retrieves the H3 Direction of the self
cell relative to its direct parent
Retrieves the H3 Direction of the self
cell relative to its parent at resolution
.
The function may fail if resolution
is higher than self
resolution
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Creates a value from an iterator. Read more
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
the centroid coordinate of the h3 index
the polygon spanning the area of the index
convert to index including validation
Auto Trait Implementations
impl RefUnwindSafe for H3Cell
impl UnwindSafe for H3Cell
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self