Struct H3Array

Source
pub struct H3Array<IX> { /* private fields */ }

Implementations§

Source§

impl H3Array<CellIndex>

Source

pub fn resolution(&self) -> ResolutionArray

Source

pub fn area_rads2(&self) -> Float64Array

Source

pub fn area_km2(&self) -> Float64Array

Source

pub fn area_m2(&self) -> Float64Array

Source

pub fn parent(&self, resolution: Resolution) -> Self

Source

pub fn children( &self, resolution: Resolution, ) -> Result<H3ListArray<CellIndex>, Error>

Source

pub fn children_count(&self, resolution: Resolution) -> UInt64Array

Source§

impl H3Array<DirectedEdgeIndex>

Source§

impl H3Array<VertexIndex>

Source

pub fn owner(&self) -> CellIndexArray

Source§

impl<IX> H3Array<IX>

Source

pub fn new_null(length: usize) -> Self

Source

pub fn primitive_array(&self) -> &UInt64Array

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn slice(&self, offset: usize, length: usize) -> Self

Source

pub fn iter(&self) -> PrimitiveArrayH3IndexIter<'_, IX>

Returns an iterator over the values and validity as Option.

Source

pub fn get(&self, i: usize) -> Option<IX>

Returns the element at index i or None if it is null

§Panics

iff i >= self.len()

Source§

impl<IX> H3Array<IX>

Source

pub fn spatial_index(&self) -> SpatialIndex<IX>

Trait Implementations§

Source§

impl<IX: Clone> Clone for H3Array<IX>

Source§

fn clone(&self) -> H3Array<IX>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<IX> From<H3Array<IX>> for UInt64Array

Source§

fn from(v: H3Array<IX>) -> Self

Converts to this type from the input type.
Source§

impl<IX> From<H3Array<IX>> for SpatialIndex<IX>

Source§

fn from(array: H3Array<IX>) -> Self

Converts to this type from the input type.
Source§

impl<IX> From<Vec<IX>> for H3Array<IX>

Source§

fn from(value: Vec<IX>) -> Self

Converts to this type from the input type.
Source§

impl<IX> From<Vec<Option<IX>>> for H3Array<IX>

Source§

fn from(value: Vec<Option<IX>>) -> Self

Converts to this type from the input type.
Source§

impl<IX> FromIterator<IX> for H3Array<IX>

Source§

fn from_iter<T: IntoIterator<Item = IX>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<IX> FromIterator<Option<IX>> for H3Array<IX>

Source§

fn from_iter<T: IntoIterator<Item = Option<IX>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<IX> FromIteratorWithValidity<Option<u64>> for H3Array<IX>

Source§

fn from_iter_with_validity<T: IntoIterator<Item = Option<u64>>>(iter: T) -> Self

Source§

impl<IX> FromIteratorWithValidity<u64> for H3Array<IX>

Source§

fn from_iter_with_validity<T: IntoIterator<Item = u64>>(iter: T) -> Self

Source§

impl<IX> FromWithValidity<PrimitiveArray<UInt64Type>> for H3Array<IX>

Source§

impl<IX> FromWithValidity<Vec<Option<u64>>> for H3Array<IX>

Source§

impl<IX> FromWithValidity<Vec<u64>> for H3Array<IX>

Source§

fn from_with_validity(value: Vec<u64>) -> Self

Source§

impl GridOp for H3Array<CellIndex>

Source§

impl<IX: PartialEq> PartialEq for H3Array<IX>

Source§

fn eq(&self, other: &H3Array<IX>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<O: OffsetSizeTrait, IX> ToGenericStringArray<O> for H3Array<IX>

Source§

impl<T> ToWKBLineStrings for H3Array<T>
where Self: IterLines, T: H3IndexArrayValue,

Source§

type Error = <H3Array<T> as IterLines>::Error

Source§

fn to_wkb_linestrings<O: OffsetSizeTrait>( &self, use_degrees: bool, ) -> Result<WKBArray<O>, Self::Error>

Source§

impl<T> ToWKBPoints for H3Array<T>
where Self: IterPoints, T: H3IndexArrayValue,

Source§

type Error = <H3Array<T> as IterPoints>::Error

Source§

fn to_wkb_points<O: OffsetSizeTrait>( &self, use_degrees: bool, ) -> Result<WKBArray<O>, Self::Error>

Source§

impl<T> ToWKBPolygons for H3Array<T>

Source§

type Error = <H3Array<T> as IterPolygons>::Error

Source§

fn to_wkb_polygons<O: OffsetSizeTrait>( &self, use_degrees: bool, ) -> Result<WKBArray<O>, Self::Error>

Source§

impl<IX, O: OffsetSizeTrait> TryFrom<GenericByteArray<GenericStringType<O>>> for H3Array<IX>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: GenericStringArray<O>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<IX, O: OffsetSizeTrait> TryFrom<H3Array<IX>> for GenericStringArray<O>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: H3Array<IX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<IX> TryFrom<PrimitiveArray<UInt64Type>> for H3Array<IX>
where IX: H3IndexArrayValue + TryFrom<u64>, Error: From<<IX as TryFrom<u64>>::Error>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: UInt64Array) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<IX> TryFrom<Vec<u64>> for H3Array<IX>
where IX: H3IndexArrayValue + TryFrom<u64>, Error: From<<IX as TryFrom<u64>>::Error>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Vec<u64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<IX> StructuralPartialEq for H3Array<IX>

Auto Trait Implementations§

§

impl<IX> Freeze for H3Array<IX>

§

impl<IX> RefUnwindSafe for H3Array<IX>
where IX: RefUnwindSafe,

§

impl<IX> Send for H3Array<IX>
where IX: Send,

§

impl<IX> Sync for H3Array<IX>
where IX: Sync,

§

impl<IX> Unpin for H3Array<IX>
where IX: Unpin,

§

impl<IX> UnwindSafe for H3Array<IX>
where IX: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToGeoArrowLineStrings for T
where T: ToLineStrings,

Source§

impl<T> ToGeoArrowPoints for T
where T: ToPoints,

Source§

type Error = <T as ToPoints>::Error

Source§

fn to_geoarrow_points( &self, use_degrees: bool, ) -> Result<PointArray, <T as ToGeoArrowPoints>::Error>

Source§

impl<T> ToGeoArrowPolygons for T
where T: ToPolygons,

Source§

type Error = <T as ToPolygons>::Error

Source§

fn to_geoarrow_polygons<O>( &self, use_degrees: bool, ) -> Result<PolygonArray<O>, <T as ToGeoArrowPolygons>::Error>
where O: OffsetSizeTrait,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToPoints for T
where T: IterPoints,

Source§

type Error = <T as IterPoints>::Error

Source§

fn to_points( &self, use_degrees: bool, ) -> Result<Vec<Option<Point>>, <T as ToPoints>::Error>

Source§

impl<T> ToPolygons for T
where T: IterPolygons,

Source§

type Error = <T as IterPolygons>::Error

Source§

fn to_polygons( &self, use_degrees: bool, ) -> Result<Vec<Option<Polygon>>, <T as ToPolygons>::Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,