Struct postgis::ewkb::EwkbPolygon
[−]
[src]
pub struct EwkbPolygon<'a, P, I, T, J> where P: 'a + Point, I: 'a + Iterator<Item=&'a P> + ExactSizeIterator<Item=&'a P>, T: 'a + LineString<'a, ItemType=P, Iter=I>, J: 'a + Iterator<Item=&'a T> + ExactSizeIterator<Item=&'a T> { pub geom: &'a Polygon<'a, ItemType=T, Iter=J>, pub srid: Option<i32>, pub point_type: PointType, }
Fields
geom: &'a Polygon<'a, ItemType=T, Iter=J>
srid: Option<i32>
point_type: PointType
Trait Implementations
impl<'a, P, I, T, J> Debug for EwkbPolygon<'a, P, I, T, J> where P: 'a + Point, I: 'a + Iterator<Item=&'a P> + ExactSizeIterator<Item=&'a P>, T: 'a + LineString<'a, ItemType=P, Iter=I>, J: 'a + Iterator<Item=&'a T> + ExactSizeIterator<Item=&'a T>[src]
impl<'a, P, I, T, J> EwkbWrite for EwkbPolygon<'a, P, I, T, J> where P: 'a + Point, I: 'a + Iterator<Item=&'a P> + ExactSizeIterator<Item=&'a P>, T: 'a + LineString<'a, ItemType=P, Iter=I>, J: 'a + Iterator<Item=&'a T> + ExactSizeIterator<Item=&'a T>[src]
fn opt_srid(&self) -> Option<i32>
fn type_id(&self) -> u32
fn write_ewkb_body<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn wkb_type_id(point_type: &PointType, srid: Option<i32>) -> u32
fn write_ewkb<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn to_hex_ewkb(&self) -> String
impl<'a, P, I, T, J> ToSql for EwkbPolygon<'a, P, I, T, J> where P: 'a + Point, I: 'a + Iterator<Item=&'a P> + ExactSizeIterator<Item=&'a P>, T: 'a + LineString<'a, ItemType=P, Iter=I>, J: 'a + Iterator<Item=&'a T> + ExactSizeIterator<Item=&'a T>[src]
fn to_sql_checked(&self,
ty: &Type,
out: &mut Vec<u8>,
ctx: &SessionInfo)
-> Result<IsNull, Box<Error + Sync + Send>>
ty: &Type,
out: &mut Vec<u8>,
ctx: &SessionInfo)
-> Result<IsNull, Box<Error + Sync + Send>>
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(&self,
_: &Type,
out: &mut Vec<u8>,
_ctx: &SessionInfo)
-> Result<IsNull, Box<Error + Sync + Send>>
_: &Type,
out: &mut Vec<u8>,
_ctx: &SessionInfo)
-> Result<IsNull, Box<Error + Sync + Send>>
Converts the value of self into the binary format of the specified Postgres Type, appending it to out. Read more