Enum shapefile::record::multipatch::Patch[][src]

pub enum Patch {
    TriangleStrip(Vec<PointZ>),
    TriangleFan(Vec<PointZ>),
    OuterRing(Vec<PointZ>),
    InnerRing(Vec<PointZ>),
    FirstRing(Vec<PointZ>),
    Ring(Vec<PointZ>),
}

Variants

TriangleStrip(Vec<PointZ>)

A linked strip of triangles, where every vertex (after the first two)completes a new triangle.

A new triangle is always formed by connecting the new vertex with its two immediate predecessors

TriangleFan(Vec<PointZ>)

A linked fan of triangles, where every vertex (after the first two) completes a new triangle.

A new triangle is always formed by connecting the new vertex with its immediate predecessor and the first vertex of the part.

OuterRing(Vec<PointZ>)

The outer ring of a polygon.

InnerRing(Vec<PointZ>)

A hole of a polygon

FirstRing(Vec<PointZ>)

The first ring of a polygon of an unspecified type

Ring(Vec<PointZ>)

A ring of a polygon of an unspecified type

Implementations

impl Patch[src]

pub fn points(&self) -> &[PointZ][src]

Returns the slice of points contained within the patch

Trait Implementations

impl AsRef<[PointZ]> for Patch[src]

impl Clone for Patch[src]

impl Debug for Patch[src]

impl PartialEq<Patch> for Patch[src]

impl StructuralPartialEq for Patch[src]

Auto Trait Implementations

impl RefUnwindSafe for Patch

impl Send for Patch

impl Sync for Patch

impl Unpin for Patch

impl UnwindSafe for Patch

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.