Struct geo::MultiLineString
[−]
[src]
pub struct MultiLineString<T>(pub Vec<LineString<T>>)
where
T: CoordinateType;
A collection of LineString
s
Can be created from a Vec
of LineString
s, or from an Iterator which yields LineString
s.
Iterating over this objects, yields the component LineString
s.
Trait Implementations
impl<T: PartialEq> PartialEq for MultiLineString<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn eq(&self, __arg_0: &MultiLineString<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MultiLineString<T>) -> bool
[src]
This method tests for !=
.
impl<T: Clone> Clone for MultiLineString<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn clone(&self) -> MultiLineString<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for MultiLineString<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: CoordinateType, ILS: Into<LineString<T>>> From<ILS> for MultiLineString<T>
[src]
impl<T: CoordinateType, ILS: Into<LineString<T>>> FromIterator<ILS> for MultiLineString<T>
[src]
fn from_iter<I: IntoIterator<Item = ILS>>(iter: I) -> Self
[src]
Creates a value from an iterator. Read more
impl<T: CoordinateType> IntoIterator for MultiLineString<T>
[src]
type Item = LineString<T>
The type of the elements being iterated over.
type IntoIter = IntoIter<LineString<T>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<T: CoordinateType> From<MultiLineString<T>> for Geometry<T>
[src]
fn from(x: MultiLineString<T>) -> Geometry<T>
[src]
Performs the conversion.
impl<T> EuclideanLength<T> for MultiLineString<T> where
T: Float,
[src]
T: Float,
fn euclidean_length(&self) -> T
[src]
Calculation of the length of a Line Read more
impl<T> EuclideanDistance<T, MultiLineString<T>> for Point<T> where
T: Float,
[src]
T: Float,
fn euclidean_distance(&self, mls: &MultiLineString<T>) -> T
[src]
Minimum distance from a Point to a MultiLineString
impl<T> EuclideanDistance<T, Point<T>> for MultiLineString<T> where
T: Float,
[src]
T: Float,
fn euclidean_distance(&self, point: &Point<T>) -> T
[src]
Minimum distance from a MultiLineString to a Point
impl<T> BoundingBox<T> for MultiLineString<T> where
T: CoordinateType,
[src]
T: CoordinateType,
type Output = Option<Bbox<T>>
fn bbox(&self) -> Self::Output
[src]
Return the BoundingBox for a MultiLineString
impl<T> Simplify<T> for MultiLineString<T> where
T: Float,
[src]
T: Float,
fn simplify(&self, epsilon: &T) -> MultiLineString<T>
[src]
Returns the simplified representation of a geometry, using the Ramer–Douglas–Peucker algorithm Read more
impl<T> SimplifyVWPreserve<T> for MultiLineString<T> where
T: Float + SpadeFloat,
[src]
T: Float + SpadeFloat,
fn simplifyvw_preserve(&self, epsilon: &T) -> MultiLineString<T>
[src]
Returns the simplified representation of a geometry, using a topology-preserving variant of the Visvalingam-Whyatt algorithm. Read more
impl<T> SimplifyVW<T> for MultiLineString<T> where
T: Float,
[src]
T: Float,
fn simplifyvw(&self, epsilon: &T) -> MultiLineString<T>
[src]
Returns the simplified representation of a geometry, using the Visvalingam-Whyatt algorithm Read more
impl<T> ConvexHull<T> for MultiLineString<T> where
T: Float,
[src]
T: Float,
fn convex_hull(&self) -> Polygon<T>
[src]
Returns the convex hull of a Polygon. The hull is always oriented counter-clockwise. Read more
impl<T> Rotate<T> for MultiLineString<T> where
T: Float + FromPrimitive,
[src]
T: Float + FromPrimitive,
fn rotate(&self, angle: T) -> Self
[src]
Rotate the contained LineStrings about their centroids by the given number of degrees
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiLineString<T>
[src]
type Output = MultiLineString<NT>
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::Output
[src]
Apply a function to all the coordinates in a geometric object, returning a new object. Read more
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for MultiLineString<T>
[src]
type Output = MultiLineString<NT>
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>
[src]
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>
Map a fallible function over all the coordinates in a geometry, returning a Result Read more
impl<T: CoordinateType> MapCoordsInplace<T> for MultiLineString<T>
[src]
fn map_coords_inplace(&mut self, func: &Fn(&(T, T)) -> (T, T))
[src]
Apply a function to all the coordinates in a geometric object, in place Read more
impl<F: Float> ClosestPoint<F> for MultiLineString<F>
[src]
fn closest_point(&self, p: &Point<F>) -> Closest<F>
[src]
Find the closest point between self
and p
.
impl<T> HaversineLength<T> for MultiLineString<T> where
T: Float + FromPrimitive,
[src]
T: Float + FromPrimitive,
fn haversine_length(&self) -> T
[src]
Calculation of the length of a Line Read more
Auto Trait Implementations
impl<T> Send for MultiLineString<T> where
T: Send,
T: Send,
impl<T> Sync for MultiLineString<T> where
T: Sync,
T: Sync,