Struct h3ron::H3Edge [−][src]
#[repr(transparent)]pub struct H3Edge(_);
Expand description
H3 Index representing an Unidirectional H3 edge
Implementations
Gets the average length of an edge in kilometers at resolution
Gets the average length of an edge in meters at resolution
Retrieves the exact length of self
in kilometers
Retrieves the exact length of self
in meters
Retrieves the exact length of self
in radians
Retrieves the destination H3 Cell of self
Returns
The built index may be invalid.
Use the destination_index
method for validity check.
Retrieves the destination H3 Cell of self
Returns
If the built index is invalid, returns an Error.
Use the destination_index_unchecked
to avoid error.
Retrieves the origin H3 Cell of self
Returns
The built index may be invalid.
Use the origin_index
method for validity check.
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
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
convert to index including validation
Auto Trait Implementations
impl RefUnwindSafe for H3Edge
impl UnwindSafe for H3Edge
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self