[go: up one dir, main page]

Struct postgis::GeometryCollection [] [src]

pub struct GeometryCollection<P> {
    pub geometries: Vec<GeometryType<P>>,
}

GeometryCollection

Fields

geometries: Vec<GeometryType<P>>

Methods

impl<P: ToPoint> GeometryCollection<P>
[src]

Trait Implementations

impl<P: Debug> Debug for GeometryCollection<P>
[src]

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

Formats the value using the given formatter.

impl<P: ToPoint + Debug> ToSql for GeometryCollection<P>
[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, w: &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<P: ToPoint + Debug> FromSql for GeometryCollection<P>
[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<GeometryCollection<P>>

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

fn from_sql_nullable<R>(ty: &Type, raw: Option<&mut R>, ctx: &SessionInfo) -> Result<Self, Error> where R: Read

Deprecated

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