Struct geo::MultiLineString [−][src]
pub struct MultiLineString<T>(pub Vec<LineString<T>>)
where
T: CoordinateType;
A collection of LineStrings
Can be created from a Vec of LineStrings, or from an Iterator which yields LineStrings.
Iterating over this objects, yields the component LineStrings.
Trait Implementations
impl<T, ILS> FromIterator<ILS> for MultiLineString<T> where
ILS: Into<LineString<T>>,
T: CoordinateType, [src]
impl<T, ILS> FromIterator<ILS> for MultiLineString<T> where
ILS: Into<LineString<T>>,
T: CoordinateType, fn from_iter<I>(iter: I) -> MultiLineString<T> where
I: IntoIterator<Item = ILS>, [src]
fn from_iter<I>(iter: I) -> MultiLineString<T> where
I: IntoIterator<Item = ILS>, Creates a value from an iterator. Read more
impl<T> Clone for MultiLineString<T> where
T: Clone + CoordinateType, [src]
impl<T> Clone for MultiLineString<T> where
T: Clone + CoordinateType, fn clone(&self) -> MultiLineString<T>[src]
fn clone(&self) -> MultiLineString<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T> Debug for MultiLineString<T> where
T: Debug + CoordinateType, [src]
impl<T> Debug for MultiLineString<T> where
T: Debug + CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> IntoIterator for MultiLineString<T> where
T: CoordinateType, [src]
impl<T> IntoIterator for MultiLineString<T> where
T: CoordinateType, 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) -> <MultiLineString<T> as IntoIterator>::IntoIter[src]
fn into_iter(self) -> <MultiLineString<T> as IntoIterator>::IntoIterCreates an iterator from a value. Read more
impl<T> PartialEq<MultiLineString<T>> for MultiLineString<T> where
T: PartialEq<T> + CoordinateType, [src]
impl<T> PartialEq<MultiLineString<T>> for MultiLineString<T> where
T: PartialEq<T> + CoordinateType, fn eq(&self, other: &MultiLineString<T>) -> bool[src]
fn eq(&self, other: &MultiLineString<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MultiLineString<T>) -> bool[src]
fn ne(&self, other: &MultiLineString<T>) -> boolThis method tests for !=.
impl<T> From<MultiLineString<T>> for Geometry<T> where
T: CoordinateType, [src]
impl<T> From<MultiLineString<T>> for Geometry<T> where
T: CoordinateType, fn from(x: MultiLineString<T>) -> Geometry<T>[src]
fn from(x: MultiLineString<T>) -> Geometry<T>Performs the conversion.
impl<T, ILS> From<ILS> for MultiLineString<T> where
ILS: Into<LineString<T>>,
T: CoordinateType, [src]
impl<T, ILS> From<ILS> for MultiLineString<T> where
ILS: Into<LineString<T>>,
T: CoordinateType, fn from(ls: ILS) -> MultiLineString<T>[src]
fn from(ls: ILS) -> MultiLineString<T>Performs the conversion.
impl<T> EuclideanLength<T> for MultiLineString<T> where
T: Float, [src]
impl<T> EuclideanLength<T> for MultiLineString<T> where
T: Float, fn euclidean_length(&self) -> T[src]
fn euclidean_length(&self) -> TCalculation of the length of a Line Read more
impl<T> EuclideanDistance<T, MultiLineString<T>> for Point<T> where
T: Float, [src]
impl<T> EuclideanDistance<T, MultiLineString<T>> for Point<T> where
T: Float, fn euclidean_distance(&self, mls: &MultiLineString<T>) -> T[src]
fn euclidean_distance(&self, mls: &MultiLineString<T>) -> TMinimum distance from a Point to a MultiLineString
impl<T> EuclideanDistance<T, Point<T>> for MultiLineString<T> where
T: Float, [src]
impl<T> EuclideanDistance<T, Point<T>> for MultiLineString<T> where
T: Float, fn euclidean_distance(&self, point: &Point<T>) -> T[src]
fn euclidean_distance(&self, point: &Point<T>) -> TMinimum distance from a MultiLineString to a Point
impl<T> BoundingBox<T> for MultiLineString<T> where
T: CoordinateType, [src]
impl<T> BoundingBox<T> for MultiLineString<T> where
T: CoordinateType, type Output = Option<Bbox<T>>
fn bbox(&self) -> Self::Output[src]
fn bbox(&self) -> Self::OutputReturn the BoundingBox for a MultiLineString
impl<T> Simplify<T> for MultiLineString<T> where
T: Float, [src]
impl<T> Simplify<T> for MultiLineString<T> where
T: Float, fn simplify(&self, epsilon: &T) -> MultiLineString<T>[src]
fn simplify(&self, epsilon: &T) -> MultiLineString<T>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]
impl<T> SimplifyVWPreserve<T> for MultiLineString<T> where
T: Float + SpadeFloat, fn simplifyvw_preserve(&self, epsilon: &T) -> MultiLineString<T>[src]
fn simplifyvw_preserve(&self, epsilon: &T) -> MultiLineString<T>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]
impl<T> SimplifyVW<T> for MultiLineString<T> where
T: Float, fn simplifyvw(&self, epsilon: &T) -> MultiLineString<T>[src]
fn simplifyvw(&self, epsilon: &T) -> MultiLineString<T>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]
impl<T> ConvexHull<T> for MultiLineString<T> where
T: Float, fn convex_hull(&self) -> Polygon<T>[src]
fn convex_hull(&self) -> Polygon<T>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]
impl<T> Rotate<T> for MultiLineString<T> where
T: Float + FromPrimitive, fn rotate(&self, angle: T) -> Self[src]
fn rotate(&self, angle: T) -> SelfRotate the contained LineStrings about their centroids by the given number of degrees
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiLineString<T>[src]
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiLineString<T>type Output = MultiLineString<NT>
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::Output[src]
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::OutputApply 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]
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for MultiLineString<T>type Output = MultiLineString<NT>
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>[src]
fn try_map_coords(
&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]
impl<T: CoordinateType> MapCoordsInplace<T> for MultiLineString<T>fn map_coords_inplace(&mut self, func: &Fn(&(T, T)) -> (T, T))[src]
fn map_coords_inplace(&mut self, func: &Fn(&(T, T)) -> (T, T))Apply a function to all the coordinates in a geometric object, in place Read more
impl<F: Float> ClosestPoint<F> for MultiLineString<F>[src]
impl<F: Float> ClosestPoint<F> for MultiLineString<F>fn closest_point(&self, p: &Point<F>) -> Closest<F>[src]
fn closest_point(&self, p: &Point<F>) -> Closest<F>Find the closest point between self and p.
impl<T> HaversineLength<T> for MultiLineString<T> where
T: Float + FromPrimitive, [src]
impl<T> HaversineLength<T> for MultiLineString<T> where
T: Float + FromPrimitive, fn haversine_length(&self) -> T[src]
fn haversine_length(&self) -> TCalculation of the length of a Line Read more
impl<T> VincentyLength<T> for MultiLineString<T> where
T: Float + FromPrimitive, [src]
impl<T> VincentyLength<T> for MultiLineString<T> where
T: Float + FromPrimitive, fn vincenty_length(&self) -> Result<T, FailedToConvergeError>[src]
fn vincenty_length(&self) -> Result<T, FailedToConvergeError>Auto Trait Implementations
impl<T> Send for MultiLineString<T> where
T: Send,
impl<T> Send for MultiLineString<T> where
T: Send, impl<T> Sync for MultiLineString<T> where
T: Sync,
impl<T> Sync for MultiLineString<T> where
T: Sync,