[][src]Struct diesel_geometry::pg::data_types::PgPoint

pub struct PgPoint(pub f64, pub f64);

Point is represented in Postgres as a tuple of 64 bit floating point values (x, y). This struct is a dumb wrapper type, meant only to indicate the tuple's meaning.

Trait Implementations

impl Copy for PgPoint[src]

impl PartialEq<PgPoint> for PgPoint[src]

impl Clone for PgPoint[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PgPoint[src]

impl<__ST, __DB> Queryable<__ST, __DB> for PgPoint where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[src]

type Row = Self

The Rust type you'd like to map from. Read more

impl<'expr> AsExpression<Point> for &'expr PgPoint[src]

type Expression = Bound<Point, Self>

The expression being returned

impl<'expr> AsExpression<Nullable<Point>> for &'expr PgPoint[src]

type Expression = Bound<Nullable<Point>, Self>

The expression being returned

impl AsExpression<Point> for PgPoint[src]

type Expression = Bound<Point, Self>

The expression being returned

impl AsExpression<Nullable<Point>> for PgPoint[src]

type Expression = Bound<Nullable<Point>, Self>

The expression being returned

impl<__DB> ToSql<Nullable<Point>, __DB> for PgPoint where
    __DB: Backend,
    Self: ToSql<Point, __DB>, 
[src]

impl ToSql<Point, Pg> for PgPoint[src]

impl FromSql<Point, Pg> for PgPoint[src]

impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgPoint where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[src]

const FIELDS_NEEDED: usize[src]

The number of fields that this type will consume. Must be equal to the number of times you would call row.take() in build_from_row Read more

Auto Trait Implementations

impl Send for PgPoint

impl Sync for PgPoint

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more