[−][src]Struct h3ron_ndarray::array::H3Converter
convert a 2-d ndarray to h3
Implementations
impl<'a, T> H3Converter<'a, T> where
T: Sized + PartialEq + Sync + Eq + Hash, [src]
T: Sized + PartialEq + Sync + Eq + Hash,
pub fn new(
arr: &'a ArrayView2<'a, T>,
nodata_value: &'a Option<T>,
transform: &'a Transform,
axis_order: AxisOrder
) -> Self[src]
arr: &'a ArrayView2<'a, T>,
nodata_value: &'a Option<T>,
transform: &'a Transform,
axis_order: AxisOrder
) -> Self
pub fn nearest_h3_resolution(
&self,
search_mode: ResolutionSearchMode
) -> Result<u8, Error>[src]
&self,
search_mode: ResolutionSearchMode
) -> Result<u8, Error>
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]
&self,
h3_resolution: u8,
compact: bool
) -> Result<HashMap<&'a T, H3CompactedVec>, Error>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for H3Converter<'a, T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
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]
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,