pub struct GeometryType { /* private fields */ }
Expand description
A GeoArrow Geometry type.
Refer to the GeoArrow specification.
Implementations§
Source§impl GeometryType
impl GeometryType
Sourcepub fn with_coord_type(self, coord_type: CoordType) -> Self
pub fn with_coord_type(self, coord_type: CoordType) -> Self
Change the underlying CoordType
Sourcepub fn with_metadata(self, metadata: Arc<Metadata>) -> Self
pub fn with_metadata(self, metadata: Arc<Metadata>) -> Self
Change the underlying Metadata
Sourcepub fn coord_type(&self) -> CoordType
pub fn coord_type(&self) -> CoordType
Retrieve the underlying CoordType
Trait Implementations§
Source§impl Clone for GeometryType
impl Clone for GeometryType
Source§fn clone(&self) -> GeometryType
fn clone(&self) -> GeometryType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeometryType
impl Debug for GeometryType
Source§impl Default for GeometryType
impl Default for GeometryType
Source§fn default() -> GeometryType
fn default() -> GeometryType
Returns the “default value” for a type. Read more
Source§impl ExtensionType for GeometryType
impl ExtensionType for GeometryType
Source§const NAME: &'static str = "geoarrow.geometry"
const NAME: &'static str = "geoarrow.geometry"
The name identifying this extension type. Read more
Source§fn metadata(&self) -> &Self::Metadata
fn metadata(&self) -> &Self::Metadata
Returns a reference to the metadata of this extension type, or
&()
if
if this extension type defines no metadata (Self::Metadata=()
).Source§fn serialize_metadata(&self) -> Option<String>
fn serialize_metadata(&self) -> Option<String>
Returns the serialized representation of the metadata of this extension
type, or
None
if this extension type defines no metadata
(Self::Metadata=()
). Read moreSource§fn deserialize_metadata(
metadata: Option<&str>,
) -> Result<Self::Metadata, ArrowError>
fn deserialize_metadata( metadata: Option<&str>, ) -> Result<Self::Metadata, ArrowError>
Deserialize the metadata of this extension type from the serialized
representation of the metadata. An extension type that defines no
metadata should expect
None
for the serialized metadata and return
Ok(())
. Read moreSource§fn supports_data_type(&self, data_type: &DataType) -> Result<(), ArrowError>
fn supports_data_type(&self, data_type: &DataType) -> Result<(), ArrowError>
Returns
Ok(())
iff the given data type is supported by this extension
type.Source§impl From<GeometryType> for GeoArrowType
impl From<GeometryType> for GeoArrowType
Source§fn from(value: GeometryType) -> Self
fn from(value: GeometryType) -> Self
Converts to this type from the input type.
Source§impl Hash for GeometryType
impl Hash for GeometryType
Source§impl PartialEq for GeometryType
impl PartialEq for GeometryType
impl Eq for GeometryType
impl StructuralPartialEq for GeometryType
Auto Trait Implementations§
impl Freeze for GeometryType
impl RefUnwindSafe for GeometryType
impl Send for GeometryType
impl Sync for GeometryType
impl Unpin for GeometryType
impl UnwindSafe for GeometryType
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