[][src]Struct h3ron_ndarray::array::H3Converter

pub struct H3Converter<'a, T> where
    T: Sized + PartialEq + Sync + Eq + Hash
{ /* fields omitted */ }

convert a 2-d ndarray to h3

Implementations

impl<'a, T> H3Converter<'a, T> where
    T: Sized + PartialEq + Sync + Eq + Hash
[src]

pub fn new(
    arr: &'a ArrayView2<'a, T>,
    nodata_value: &'a Option<T>,
    transform: &'a Transform,
    axis_order: AxisOrder
) -> Self
[src]

pub fn nearest_h3_resolution(
    &self,
    search_mode: ResolutionSearchMode
) -> Result<u8, Error>
[src]

find the h3 resolution closest to the size of a pixel in an array

pub fn to_h3(
    &self,
    h3_resolution: u8,
    compact: bool
) -> Result<HashMap<&'a T, H3CompactedVec>, Error>
[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for H3Converter<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for H3Converter<'a, T>[src]

impl<'a, T> Sync for H3Converter<'a, T>[src]

impl<'a, T> Unpin for H3Converter<'a, T>[src]

impl<'a, T> UnwindSafe for H3Converter<'a, T> where
    T: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.