Struct MultiLineString

Source
pub struct MultiLineString<T: WktNum>(pub Vec<LineString<T>>);

Tuple Fields§

§0: Vec<LineString<T>>

Trait Implementations§

Source§

impl<T: Clone + WktNum> Clone for MultiLineString<T>

Source§

fn clone(&self) -> MultiLineString<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + WktNum> Debug for MultiLineString<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default + WktNum> Default for MultiLineString<T>

Source§

fn default() -> MultiLineString<T>

Returns the “default value” for a type. Read more
Source§

impl<T> Display for MultiLineString<T>
where T: WktNum + Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a, T> From<&'a MultiLineString<T>> for Geometry<T>
where T: CoordNum,

Available on crate feature geo-types only.
Source§

fn from(multi_line_string: &'a MultiLineString<T>) -> Geometry<T>

Converts to this type from the input type.
Source§

impl<T> From<MultiLineString<T>> for MultiLineString<T>
where T: CoordNum,

Available on crate feature geo-types only.
Source§

fn from(multi_line_string: MultiLineString<T>) -> MultiLineString<T>

Convert from a WKT MULTILINESTRING to a geo_types::MultiLineString

Source§

impl<T> From<MultiLineString<T>> for Wkt<T>
where T: WktNum,

Source§

fn from(value: MultiLineString<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T: WktNum + 'a> GeometryTrait for &'a MultiLineString<T>

Source§

type T = T

The coordinate type of this geometry
Source§

type PointType<'b> = Point<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying Point, which implements PointTrait
Source§

type LineStringType<'b> = LineString<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying LineString, which implements LineStringTrait
Source§

type PolygonType<'b> = Polygon<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying Polygon, which implements PolygonTrait
Source§

type MultiPointType<'b> = MultiPoint<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiPoint, which implements MultiPointTrait
Source§

type MultiLineStringType<'b> = MultiLineString<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiLineString, which implements MultiLineStringTrait
Source§

type MultiPolygonType<'b> = MultiPolygon<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiPolygon, which implements MultiPolygonTrait
Source§

type GeometryCollectionType<'b> = GeometryCollection<<&'a MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying GeometryCollection, which implements GeometryCollectionTrait
Source§

type RectType<'b> = UnimplementedRect<T> where Self: 'b

The type of each underlying Rect, which implements RectTrait
Source§

type LineType<'b> = UnimplementedLine<T> where Self: 'b

The type of each underlying Line, which implements LineTrait
Source§

type TriangleType<'b> = UnimplementedTriangle<T> where Self: 'b

The type of each underlying Triangle, which implements TriangleTrait
Source§

fn dim(&self) -> Dimensions

The dimension of this geometry
Source§

fn as_type( &self, ) -> GeometryType<'_, Point<T>, LineString<T>, Polygon<T>, MultiPoint<T>, MultiLineString<T>, MultiPolygon<T>, GeometryCollection<T>, Self::RectType<'_>, Self::TriangleType<'_>, Self::LineType<'_>>

Cast this geometry to a GeometryType enum, which allows for downcasting to a specific type
Source§

impl<T: WktNum> GeometryTrait for MultiLineString<T>

Source§

type T = T

The coordinate type of this geometry
Source§

type PointType<'b> = Point<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying Point, which implements PointTrait
Source§

type LineStringType<'b> = LineString<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying LineString, which implements LineStringTrait
Source§

type PolygonType<'b> = Polygon<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying Polygon, which implements PolygonTrait
Source§

type MultiPointType<'b> = MultiPoint<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiPoint, which implements MultiPointTrait
Source§

type MultiLineStringType<'b> = MultiLineString<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiLineString, which implements MultiLineStringTrait
Source§

type MultiPolygonType<'b> = MultiPolygon<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying MultiPolygon, which implements MultiPolygonTrait
Source§

type GeometryCollectionType<'b> = GeometryCollection<<MultiLineString<T> as GeometryTrait>::T> where Self: 'b

The type of each underlying GeometryCollection, which implements GeometryCollectionTrait
Source§

type RectType<'b> = UnimplementedRect<T> where Self: 'b

The type of each underlying Rect, which implements RectTrait
Source§

type LineType<'b> = UnimplementedLine<T> where Self: 'b

The type of each underlying Line, which implements LineTrait
Source§

type TriangleType<'b> = UnimplementedTriangle<T> where Self: 'b

The type of each underlying Triangle, which implements TriangleTrait
Source§

fn dim(&self) -> Dimensions

The dimension of this geometry
Source§

fn as_type( &self, ) -> GeometryType<'_, Point<T>, LineString<T>, Polygon<T>, MultiPoint<T>, MultiLineString<T>, MultiPolygon<T>, GeometryCollection<T>, Self::RectType<'_>, Self::TriangleType<'_>, Self::LineType<'_>>

Cast this geometry to a GeometryType enum, which allows for downcasting to a specific type
Source§

impl<T: WktNum> MultiLineStringTrait for &MultiLineString<T>

Source§

type T = T

The coordinate type of this geometry
Source§

type LineStringType<'a> = &'a LineString<T> where Self: 'a

The type of each underlying LineString, which implements LineStringTrait
Source§

fn dim(&self) -> Dimensions

The dimension of this geometry
Source§

fn num_line_strings(&self) -> usize

The number of line_strings in this MultiLineString
Source§

unsafe fn line_string_unchecked(&self, i: usize) -> Self::LineStringType<'_>

Access to a specified line_string in this MultiLineString Read more
Source§

fn line_strings(&self) -> impl DoubleEndedIterator + ExactSizeIterator

An iterator over the LineStrings in this MultiLineString
Source§

fn line_string(&self, i: usize) -> Option<Self::LineStringType<'_>>

Access to a specified line_string in this MultiLineString Will return None if the provided index is out of bounds
Source§

impl<T: WktNum> MultiLineStringTrait for MultiLineString<T>

Source§

type T = T

The coordinate type of this geometry
Source§

type LineStringType<'a> = &'a LineString<T> where Self: 'a

The type of each underlying LineString, which implements LineStringTrait
Source§

fn dim(&self) -> Dimensions

The dimension of this geometry
Source§

fn num_line_strings(&self) -> usize

The number of line_strings in this MultiLineString
Source§

unsafe fn line_string_unchecked(&self, i: usize) -> Self::LineStringType<'_>

Access to a specified line_string in this MultiLineString Read more
Source§

fn line_strings(&self) -> impl DoubleEndedIterator + ExactSizeIterator

An iterator over the LineStrings in this MultiLineString
Source§

fn line_string(&self, i: usize) -> Option<Self::LineStringType<'_>>

Access to a specified line_string in this MultiLineString Will return None if the provided index is out of bounds
Source§

impl<T: PartialEq + WktNum> PartialEq for MultiLineString<T>

Source§

fn eq(&self, other: &MultiLineString<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: WktNum> StructuralPartialEq for MultiLineString<T>

Auto Trait Implementations§

§

impl<T> Freeze for MultiLineString<T>

§

impl<T> RefUnwindSafe for MultiLineString<T>
where T: RefUnwindSafe,

§

impl<T> Send for MultiLineString<T>
where T: Send,

§

impl<T> Sync for MultiLineString<T>
where T: Sync,

§

impl<T> Unpin for MultiLineString<T>
where T: Unpin,

§

impl<T> UnwindSafe for MultiLineString<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, G> ToGeoGeometry<T> for G
where T: CoordNum, G: GeometryTrait<T = T>,

Source§

fn try_to_geometry(&self) -> Option<Geometry<T>>

Convert to a geo_types Geometry. Read more
Source§

fn to_geometry(&self) -> Geometry<T>

Convert to a geo_types Geometry. Read more
Source§

impl<T, G> ToGeoMultiLineString<T> for G
where T: CoordNum, G: MultiLineStringTrait<T = T>,

Source§

fn to_multi_line_string(&self) -> MultiLineString<T>

Convert to a geo_types MultiLineString.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.