Struct geo::LineString [] [src]

pub struct LineString(pub Vec<Point>);

Trait Implementations

impl Debug for LineString
[src]

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

Formats the value using the given formatter.

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 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 Centroid for LineString
[src]

fn centroid(&self) -> Option<Point>

Centroid on a LineString is the mean of the middle of the segment weighted by the length of the segments.