pub enum HilbertGeometry {
Point(HilbertPoint),
LineString(Vec<HilbertPoint>),
Polygon(Vec<Vec<HilbertPoint>>),
MultiPoint(Vec<HilbertPoint>),
MultiLineString(Vec<Vec<HilbertPoint>>),
MultiPolygon(Vec<Vec<Vec<HilbertPoint>>>),
}Expand description
Represents a Hilbert-encoded geometry.
Variants§
Point(HilbertPoint)
LineString(Vec<HilbertPoint>)
Polygon(Vec<Vec<HilbertPoint>>)
MultiPoint(Vec<HilbertPoint>)
MultiLineString(Vec<Vec<HilbertPoint>>)
MultiPolygon(Vec<Vec<Vec<HilbertPoint>>>)
Implementations§
Source§impl HilbertGeometry
impl HilbertGeometry
pub fn encode_bincode( self, config: &Configuration, ) -> Result<Vec<u8>, EncodeError>
pub fn decode_bincode( data: &[u8], config: &Configuration, ) -> Result<HilbertGeometry, DecodeError>
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for HilbertGeometry
impl<'__de, __Context> BorrowDecode<'__de, __Context> for HilbertGeometry
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for HilbertGeometry
impl Clone for HilbertGeometry
Source§fn clone(&self) -> HilbertGeometry
fn clone(&self) -> HilbertGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HilbertGeometry
impl Debug for HilbertGeometry
Source§impl<__Context> Decode<__Context> for HilbertGeometry
impl<__Context> Decode<__Context> for HilbertGeometry
Source§impl Encode for HilbertGeometry
impl Encode for HilbertGeometry
Source§impl From<&Geometry> for HilbertGeometry
impl From<&Geometry> for HilbertGeometry
Auto Trait Implementations§
impl Freeze for HilbertGeometry
impl RefUnwindSafe for HilbertGeometry
impl Send for HilbertGeometry
impl Sync for HilbertGeometry
impl Unpin for HilbertGeometry
impl UnsafeUnpin for HilbertGeometry
impl UnwindSafe for HilbertGeometry
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