pub enum Geometry<'a, O: OffsetSizeTrait> {
    Point(Point<'a>),
    LineString(LineString<'a, O>),
    Polygon(Polygon<'a, O>),
    MultiPoint(MultiPoint<'a, O>),
    MultiLineString(MultiLineString<'a, O>),
    MultiPolygon(MultiPolygon<'a, O>),
    Rect(Rect<'a>),
}
Expand description

A Geometry is an enum over the various underlying zero copy GeoArrow scalar types.

Notably this does not include WKB as a variant, because that is not zero-copy to parse.

Variants§

§

Point(Point<'a>)

§

LineString(LineString<'a, O>)

§

Polygon(Polygon<'a, O>)

§

MultiPoint(MultiPoint<'a, O>)

§

MultiLineString(MultiLineString<'a, O>)

§

MultiPolygon(MultiPolygon<'a, O>)

§

Rect(Rect<'a>)

Trait Implementations§

source§

impl<'a, O: Debug + OffsetSizeTrait> Debug for Geometry<'a, O>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<O: OffsetSizeTrait> From<Geometry<'_, O>> for Geometry

source§

fn from(value: Geometry<'_, O>) -> Self

Converts to this type from the input type.
source§

impl<'a, O: OffsetSizeTrait> GeometryScalarTrait<'a> for Geometry<'a, O>

§

type ScalarGeo = Geometry

The geo scalar object for this geometry array type.
source§

fn to_geo(&self) -> Self::ScalarGeo

source§

impl<'a, O: OffsetSizeTrait> GeometryTrait for &'a Geometry<'a, O>

§

type T = f64

§

type Point<'b> = Point<'a> where Self: 'b

§

type LineString<'b> = LineString<'a, O> where Self: 'b

§

type Polygon<'b> = Polygon<'a, O> where Self: 'b

§

type MultiPoint<'b> = MultiPoint<'a, O> where Self: 'b

§

type MultiLineString<'b> = MultiLineString<'a, O> where Self: 'b

§

type MultiPolygon<'b> = MultiPolygon<'a, O> where Self: 'b

§

type GeometryCollection<'b> = GeometryCollection<'a, O> where Self: 'b

§

type Rect<'b> = Rect<'a> where Self: 'b

source§

fn as_type( &self ) -> GeometryType<'a, Point<'a>, LineString<'a, O>, Polygon<'a, O>, MultiPoint<'a, O>, MultiLineString<'a, O>, MultiPolygon<'a, O>, GeometryCollection<'a, O>, Rect<'a>>

source§

impl<'a, O: OffsetSizeTrait> GeometryTrait for Geometry<'a, O>

§

type T = f64

§

type Point<'b> = Point<'b> where Self: 'b

§

type LineString<'b> = LineString<'b, O> where Self: 'b

§

type Polygon<'b> = Polygon<'b, O> where Self: 'b

§

type MultiPoint<'b> = MultiPoint<'b, O> where Self: 'b

§

type MultiLineString<'b> = MultiLineString<'b, O> where Self: 'b

§

type MultiPolygon<'b> = MultiPolygon<'b, O> where Self: 'b

§

type GeometryCollection<'b> = GeometryCollection<'b, O> where Self: 'b

§

type Rect<'b> = Rect<'b> where Self: 'b

source§

fn as_type( &self ) -> GeometryType<'_, Point<'_>, LineString<'_, O>, Polygon<'_, O>, MultiPoint<'_, O>, MultiLineString<'_, O>, MultiPolygon<'_, O>, GeometryCollection<'_, O>, Rect<'_>>

source§

impl<'a, O: PartialEq + OffsetSizeTrait> PartialEq for Geometry<'a, O>

source§

fn eq(&self, other: &Geometry<'a, O>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<O: OffsetSizeTrait> RTreeObject for Geometry<'_, O>

§

type Envelope = AABB<[f64; 2]>

The object’s envelope type. Usually, AABB will be the right choice. This type also defines the object’s dimensionality.
source§

fn envelope(&self) -> Self::Envelope

Returns the object’s envelope. Read more
source§

impl<'a, O: OffsetSizeTrait> StructuralPartialEq for Geometry<'a, O>

Auto Trait Implementations§

§

impl<'a, O> RefUnwindSafe for Geometry<'a, O>
where O: RefUnwindSafe,

§

impl<'a, O> Send for Geometry<'a, O>

§

impl<'a, O> Sync for Geometry<'a, O>

§

impl<'a, O> Unpin for Geometry<'a, O>
where O: Unpin,

§

impl<'a, O> UnwindSafe for Geometry<'a, O>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,