[−][src]Struct shapefile::record::poly::GenericPolyline
Fields
bbox: BBox
points: Vec<PointType>
parts: Vec<i32>
Methods
impl<PointType: HasXY> GenericPolyline<PointType>
[src]
pub fn new(points: Vec<PointType>, parts: Vec<i32>) -> Self
[src]
Examples
Creating a Polyline
use shapefile::{Point, Polyline}; let points = vec![ Point::new(1.0, 1.0), Point::new(2.0, 2.0), ]; let poly = Polyline::new(points, vec![0]);
Trait Implementations
impl<PointType> MultipointShape<PointType> for GenericPolyline<PointType>
[src]
fn point<I: SliceIndex<[PointType]>>(
&self,
index: I
) -> Option<&<I as SliceIndex<[PointType]>>::Output>
[src]
&self,
index: I
) -> Option<&<I as SliceIndex<[PointType]>>::Output>
fn points(&self) -> &[PointType]
[src]
impl<PointType> MultipartShape<PointType> for GenericPolyline<PointType>
[src]
fn parts_indices(&self) -> &[i32]
[src]
fn part(&self, index: usize) -> Option<&[PointType]>
[src]
Returns the slice of points corresponding to part n°ìndex
if the shape actually has multiple parts Read more
ⓘImportant traits for PartIterator<'a, PointType, Shape>fn parts(&self) -> PartIterator<PointType, Self>
[src]
ⓘImportant traits for PartIterator<'a, PointType, Shape>
Returns an iterator over the parts of a MultipartShape Read more
impl<PointType> From<GenericPolygon<PointType>> for GenericPolyline<PointType>
[src]
fn from(p: GenericPolygon<PointType>) -> Self
[src]
impl<PointType> From<GenericPolyline<PointType>> for GenericPolygon<PointType>
[src]
fn from(p: GenericPolyline<PointType>) -> Self
[src]
impl<PointType> From<GenericPolyline<PointType>> for MultiLineString<f64> where
PointType: Copy,
Coordinate<f64>: From<PointType>,
[src]
PointType: Copy,
Coordinate<f64>: From<PointType>,
fn from(polyline: GenericPolyline<PointType>) -> Self
[src]
impl<PointType> From<Line<f64>> for GenericPolyline<PointType> where
PointType: From<Point<f64>> + HasXY,
[src]
PointType: From<Point<f64>> + HasXY,
impl<PointType> From<LineString<f64>> for GenericPolyline<PointType> where
PointType: From<Coordinate<f64>> + HasXY,
[src]
PointType: From<Coordinate<f64>> + HasXY,
fn from(line: LineString<f64>) -> Self
[src]
impl<PointType> From<MultiLineString<f64>> for GenericPolyline<PointType> where
PointType: From<Coordinate<f64>> + HasXY,
[src]
PointType: From<Coordinate<f64>> + HasXY,
fn from(mls: MultiLineString<f64>) -> Self
[src]
impl From<GenericPolyline<Point>> for Shape
[src]
impl From<GenericPolyline<PointM>> for Shape
[src]
impl From<GenericPolyline<PointZ>> for Shape
[src]
Auto Trait Implementations
impl<PointType> Unpin for GenericPolyline<PointType> where
PointType: Unpin,
PointType: Unpin,
impl<PointType> Sync for GenericPolyline<PointType> where
PointType: Sync,
PointType: Sync,
impl<PointType> Send for GenericPolyline<PointType> where
PointType: Send,
PointType: Send,
impl<PointType> UnwindSafe for GenericPolyline<PointType> where
PointType: UnwindSafe,
PointType: UnwindSafe,
impl<PointType> RefUnwindSafe for GenericPolyline<PointType> where
PointType: RefUnwindSafe,
PointType: RefUnwindSafe,
Blanket Implementations
impl<S> ReadableShape for S where
S: ConcreteReadableShape,
[src]
S: ConcreteReadableShape,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,