pub enum AnyGeoArray {
Array(PyGeoArray),
Stream(PyGeoArrayReader),
}Expand description
An enum over PyGeoArray and PyGeoArrayReader, used when a function accepts either
Arrow object as input.
This type automatically extracts from Python objects that implement either:
__arrow_c_array__(for single arrays)__arrow_c_stream__(for array streams)
Variants§
Array(PyGeoArray)
A single Array, held in a PyGeoArray.
Stream(PyGeoArrayReader)
A stream of possibly multiple Arrays, held in a PyGeoArrayReader.
Implementations§
Source§impl AnyGeoArray
impl AnyGeoArray
Sourcepub fn into_chunked_array(self) -> PyGeoArrowResult<PyGeoChunkedArray>
pub fn into_chunked_array(self) -> PyGeoArrowResult<PyGeoChunkedArray>
Consume this and convert it into a PyGeoChunkedArray.
All arrays from the stream will be materialized in memory.
Sourcepub fn into_reader(self) -> PyResult<Box<dyn GeoArrowArrayReader + Send>>
pub fn into_reader(self) -> PyResult<Box<dyn GeoArrowArrayReader + Send>>
Convert this into a GeoArrow array reader.
Sourcepub fn data_type(&self) -> GeoArrowType
pub fn data_type(&self) -> GeoArrowType
Get the GeoArrow data type of this array or stream.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AnyGeoArray
impl !RefUnwindSafe for AnyGeoArray
impl Send for AnyGeoArray
impl Sync for AnyGeoArray
impl Unpin for AnyGeoArray
impl UnsafeUnpin for AnyGeoArray
impl !UnwindSafe for AnyGeoArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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