#[repr(C)]pub enum tg_index {
TG_DEFAULT = 0,
TG_NONE = 1,
TG_NATURAL = 2,
TG_YSTRIPES = 3,
}Expand description
Geometry indexing options.
Used for polygons, rings, and lines to make the point-in-polygon and geometry intersection operations fast.
An index can also be used for efficiently traversing, searching, and performing nearest-neighbor (kNN) queries on the segment using tg_ring_index_*() and tg_ring_nearest() functions.
Variants§
TG_DEFAULT = 0
< default is TG_NATURAL or tg_env_set_default_index().
TG_NONE = 1
< no indexing available, or disabled.
TG_NATURAL = 2
< indexing with natural ring order, for rings/lines
TG_YSTRIPES = 3
< indexing using segment striping, rings only
Auto Trait Implementations§
impl RefUnwindSafe for tg_index
impl Send for tg_index
impl Sync for tg_index
impl Unpin for tg_index
impl UnwindSafe for tg_index
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