pub struct Point {
pub x: f64,
pub y: f64,
}Expand description
PostgreSQL POINT geometric type representing x,y coordinates
Fields§
§x: f64§y: f64Implementations§
Trait Implementations§
impl Copy for Point
Source§impl<'a> FromSqlBase<'a> for Point
impl<'a> FromSqlBase<'a> for Point
fn accepts_postgres_type(oid: i32) -> bool
fn accepts(field: &FieldDescription) -> bool
Source§fn accepts_with_registry(
field: &FieldDescription,
_registry: &EnumTypeRegistry,
) -> bool
fn accepts_with_registry( field: &FieldDescription, _registry: &EnumTypeRegistry, ) -> bool
Extended accepts check with access to the enum type registry.
Override for enum types and collections of enums.
Default delegates to the static
accepts check.fn from_null(field: &FieldDescription) -> Result<Self, ElefantClientError>
Source§impl<'a> FromSqlBinary<'a> for Point
impl<'a> FromSqlBinary<'a> for Point
fn from_sql_binary( raw: &'a [u8], _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>
Source§impl<'a> FromSqlText<'a> for Point
impl<'a> FromSqlText<'a> for Point
fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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