Struct postgis::twkb::LineString
[−]
[src]
pub struct LineString {
pub points: Vec<Point>,
}Fields
points: Vec<Point>
Trait Implementations
impl PartialEq for LineString[src]
fn eq(&self, __arg_0: &LineString) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LineString) -> bool
This method tests for !=.
impl Clone for LineString[src]
fn clone(&self) -> LineString
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 Debug for LineString[src]
impl TwkbGeom for LineString[src]
fn read_twkb_body<R: Read>(raw: &mut R,
twkb_info: &TwkbInfo)
-> Result<Self, Error>
twkb_info: &TwkbInfo)
-> Result<Self, Error>
fn read_twkb<R: Read>(raw: &mut R) -> Result<Self, Error>
fn read_idlist<R: Read>(raw: &mut R, size: usize) -> Result<Vec<u64>, Error>
impl<'a> LineString<'a> for LineString[src]
impl<'a> AsEwkbLineString<'a> for LineString[src]
type PointType = Point
type Iter = Iter<'a, Point>
fn as_ewkb(&'a self) -> EwkbLineString<'a, Self::PointType, Self::Iter>
impl FromSql for LineString[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(ty: &Type,
raw: &[u8],
_ctx: &SessionInfo)
-> Result<Self, Box<Error + Sync + Send>>
raw: &[u8],
_ctx: &SessionInfo)
-> Result<Self, Box<Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified Postgres Type in its binary format. Read more
fn from_sql_null(ty: &Type,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
Creates a new value of this type from a NULL SQL value. Read more
fn from_sql_nullable(ty: &Type,
raw: Option<&[u8]>,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
raw: Option<&[u8]>,
ctx: &SessionInfo)
-> Result<Self, Box<Error + 'static + Send + Sync>>
A convenience function that delegates to from_sql and from_sql_null depending on the value of raw. Read more