pub struct Polygon(pub Vec<Ring>);Expand description
Polygon with holes. The first element is the outer polygon, and the following ones are the holes.
https://clickhouse.com/docs/en/sql-reference/data-types/geo#polygon
Tuple Fields§
§0: Vec<Ring>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Polygon
impl<'de> Deserialize<'de> for Polygon
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSql for Polygon
impl FromSql for Polygon
fn from_sql(type_: &Type, value: Value) -> Result<Self>
Source§fn from_sql_column(type_: &Type, value: Value) -> Result<Self>
fn from_sql_column(type_: &Type, value: Value) -> Result<Self>
Converts a value as read from a column of
type_. By default the wrappers listed in
from_sql_resolved are looked through first; types that keep the raw value (like
Value) override this.impl StructuralPartialEq for Polygon
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnsafeUnpin for Polygon
impl UnwindSafe for Polygon
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