Struct postgis::PointZ [] [src]

pub struct PointZ<S: SRID = WGS84> {
    pub x: f64,
    pub y: f64,
    pub z: f64,
    // some fields omitted
}

Fields

x: f64 y: f64 z: f64

Methods

impl<S: SRID> PointZ<S>
[src]

fn new(x: f64, y: f64, z: f64) -> PointZ<S>

Trait Implementations

impl<S: Clone + SRID> Clone for PointZ<S>
[src]

fn clone(&self) -> PointZ<S>

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<S: Copy + SRID> Copy for PointZ<S>
[src]

impl<S: SRID> FromSql for PointZ<S>
[src]

fn accepts(ty: &Type) -> bool

Determines if a value of this type can be created from the specified Postgres Type. Read more

fn from_sql<R: Read>(ty: &Type, raw: &mut R, _ctx: &SessionInfo) -> Result<PointZ<S>>

Creates a new value of this type from a Reader of the binary format of the specified Postgres Type. Read more

fn from_sql_null(ty: &Type, ctx: &SessionInfo) -> Result<Self, Error>

Creates a new value of this type from a NULL SQL value. Read more

impl<S: SRID> ToSql for PointZ<S>
[src]

fn to_sql_checked(&self, ty: &Type, out: &mut Write, ctx: &SessionInfo) -> Result<IsNull>

An adaptor method used internally by Rust-Postgres. Read more

fn accepts(ty: &Type) -> bool

Determines if a value of this type can be converted to the specified Postgres Type. Read more

fn to_sql<W: Write + ?Sized>(&self, ty: &Type, out: &mut W, _ctx: &SessionInfo) -> Result<IsNull>

Converts the value of self into the binary format of the specified Postgres Type, writing it to out. Read more

impl<S: SRID> Display for PointZ<S>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<S: SRID> Debug for PointZ<S>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.