[][src]Enum plexus::primitive::Polygon

pub enum Polygon<T> {
    N3(Trigon<T>),
    N4(Tetragon<T>),
}

$n$-gon with dynamic arity.

Polygon represents an $n$-gon with three or more edges where $n$ is not fixed at runtime. Polygon does not support all polygons that can be represented by NGon; only common arities used by generators are provided.

Variants

N3(Trigon<T>)
N4(Tetragon<T>)

Trait Implementations

impl<N> IndexBuffer<Polygon<N>> for Vec<Polygon<N>> where
    N: Copy + Integer + NumCast + Unsigned
[src]

type Index = <Polygon<N> as Topological>::Vertex

The type of individual indices in the buffer.

impl<T> IntoEdges for Polygon<T> where
    T: Clone
[src]

type Output = Vec<Edge<Self::Vertex>>

impl<T> IntoTrigons for Polygon<T> where
    T: Clone
[src]

type Output = Vec<Trigon<Self::Vertex>>

impl<T> IntoSubdivisions for Polygon<T> where
    T: Clone + Interpolate<Output = T>, 
[src]

type Output = Vec<Self>

impl<T> Topological for Polygon<T>[src]

type Vertex = T

impl<T> Polygonal for Polygon<T>[src]

impl<T> Rotate for Polygon<T>[src]

impl<T> AsRef<[T]> for Polygon<T>[src]

impl<T> AsMut<[T]> for Polygon<T>[src]

impl<T> From<NGon<[T; 3]>> for Polygon<T>[src]

impl<T> From<NGon<[T; 4]>> for Polygon<T>[src]

impl<T> IntoIterator for Polygon<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = <Self::Output as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<T: Clone> Clone for Polygon<T>[src]

impl<T: Copy> Copy for Polygon<T>[src]

impl<T: Debug> Debug for Polygon<T>[src]

impl<T> Index<usize> for Polygon<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for Polygon<T>[src]

impl<T> IntoItems for Polygon<T>[src]

type Output = SmallVec<[T; 4]>

impl<T, U> Map<U> for Polygon<T>[src]

type Output = Polygon<U>

impl<T, U> Fold<U> for Polygon<T>[src]

impl<T> Composite for Polygon<T>[src]

type Item = T

Auto Trait Implementations

impl<T> Send for Polygon<T> where
    T: Send

impl<T> Sync for Polygon<T> where
    T: Sync

impl<T> Unpin for Polygon<T> where
    T: Unpin

impl<T> UnwindSafe for Polygon<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Polygon<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<P> Grouping for P where
    P: Topological,
    <P as Topological>::Vertex: Copy,
    <P as Topological>::Vertex: Integer,
    <P as Topological>::Vertex: NumCast,
    <P as Topological>::Vertex: Unsigned
[src]

type Item = P

Topological index buffers contain $n$-gons that explicitly group their indices.

impl<T> IntoVertices for T where
    T: IntoItems + Topological
[src]

type Output = <T as IntoItems>::Output

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

impl<T, U> IntoGeometry<U> for T where
    U: FromGeometry<T>, 
[src]

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Slottable for T where
    T: Copy
[src]