postgis_diesel::types

Trait PointT

source
pub trait PointT {
    // Required methods
    fn new_point(
        x: f64,
        y: f64,
        srid: Option<u32>,
        z: Option<f64>,
        m: Option<f64>,
    ) -> Result<Self, PointConstructorError>
       where Self: Sized;
    fn get_x(&self) -> f64;
    fn get_y(&self) -> f64;
    fn get_srid(&self) -> Option<u32>;
    fn get_z(&self) -> Option<f64>;
    fn get_m(&self) -> Option<f64>;
    fn dimension(&self) -> u32;
}
Expand description

Allows uniform access across the four point types

Required Methods§

source

fn new_point( x: f64, y: f64, srid: Option<u32>, z: Option<f64>, m: Option<f64>, ) -> Result<Self, PointConstructorError>
where Self: Sized,

source

fn get_x(&self) -> f64

source

fn get_y(&self) -> f64

source

fn get_srid(&self) -> Option<u32>

source

fn get_z(&self) -> Option<f64>

source

fn get_m(&self) -> Option<f64>

source

fn dimension(&self) -> u32

Implementors§