[−][src]Struct shapefile::record::multipatch::Multipatch
Fields
bbox: BBox
points: Vec<PointZ>
parts: Vec<i32>
parts_type: Vec<PatchType>
z_range: [f64; 2]
m_range: [f64; 2]
Methods
impl Multipatch
[src]
Trait Implementations
impl MultipointShape<PointZ> for Multipatch
[src]
fn point<I: SliceIndex<[PointZ]>>(
&self,
index: I
) -> Option<&<I as SliceIndex<[PointZ]>>::Output>
[src]
&self,
index: I
) -> Option<&<I as SliceIndex<[PointZ]>>::Output>
fn points(&self) -> &[PointZ]
[src]
impl MultipartShape<PointZ> for Multipatch
[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 HasShapeType for Multipatch
[src]
impl ConcreteShape for Multipatch
[src]
impl ConcreteReadableShape for Multipatch
[src]
impl WritableShape for Multipatch
[src]
fn size_in_bytes(&self) -> usize
[src]
fn write_to<T: Write>(self, dest: &mut T) -> Result<(), Error>
[src]
impl EsriShape for Multipatch
[src]
impl From<Polygon<f64>> for Multipatch
[src]
impl From<MultiPolygon<f64>> for Multipatch
[src]
fn from(multi_polygon: MultiPolygon<f64>) -> Self
[src]
impl From<Multipatch> for Shape
[src]
fn from(concrete: Multipatch) -> Self
[src]
impl Display for Multipatch
[src]
impl TryFrom<Multipatch> for MultiPolygon<f64>
[src]
Converts a Multipatch to Multipolygon
For simplicity,reasons, Triangle Fan & Triangle Strip are considered
to be valid polygons
When the individual types of rings in a collection of rings representing a polygonal patch with holes are unknown, the sequence must start with First Ring, followed by a number of Rings. A sequence of Rings not preceded by an First Ring is treated as a sequence of Outer Rings without holes.
type Error = Error
The type returned in the event of a conversion error.
fn try_from(mp: Multipatch) -> Result<Self, Self::Error>
[src]
impl TryFrom<Shape> for Multipatch
[src]
Auto Trait Implementations
impl Sync for Multipatch
impl Send for Multipatch
impl Unpin for Multipatch
impl RefUnwindSafe for Multipatch
impl UnwindSafe for Multipatch
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,