Enum tg_sys::tg_geom_type

source ·
#[repr(C)]
pub enum tg_geom_type { TG_POINT = 1, TG_LINESTRING = 2, TG_POLYGON = 3, TG_MULTIPOINT = 4, TG_MULTILINESTRING = 5, TG_MULTIPOLYGON = 6, TG_GEOMETRYCOLLECTION = 7, }
Expand description

Geometry types.

All tg_geom are one of the following underlying types.

@see tg_geom_typeof() @see tg_geom_type_string() @see GeometryAccessors

Variants§

§

TG_POINT = 1

< Point

§

TG_LINESTRING = 2

< LineString

§

TG_POLYGON = 3

< Polygon

§

TG_MULTIPOINT = 4

< MultiPoint, collection of points

§

TG_MULTILINESTRING = 5

< MultiLineString, collection of linestrings

§

TG_MULTIPOLYGON = 6

< MultiPolygon, collection of polygons

§

TG_GEOMETRYCOLLECTION = 7

< GeometryCollection, collection of geometries

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.