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

pub enum Polygon<T> {

Polymorphic $n$-gon.

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



Trait Implementations

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

type Item = T

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

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

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> DynamicArity for Polygon<T>[src]

type Dynamic = usize

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

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

impl<T> From<[T; 4]> 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> Index<usize> for Polygon<T>[src]

type Output = T

The returned type after indexing.

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

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

The type of individual indices in the buffer.

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

impl<T> IntoEdges for Polygon<T> where
    T: Clone

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

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

type Output = SmallVec<[T; 4]>

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> IntoSubdivisions for Polygon<T> where
    T: Clone + Interpolate<Output = T>, 

type Output = Vec<Self>

impl<T> IntoTrigons for Polygon<T> where
    T: Clone

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

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

type Output = Polygon<U>

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

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

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

type Static = (usize, usize)

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

type Vertex = T

Auto Trait Implementations

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

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

Blanket Implementations

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

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

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

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

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

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

type Item = P

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

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

impl<T, U> IntoGeometry<U> for T where
    U: FromGeometry<T>, 

impl<I> IntoIterator for I where
    I: Iterator

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> IntoVertices for T where
    T: IntoItems + Topological

type Output = <T as IntoItems>::Output

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Slottable for T where
    T: Copy

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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