[][src]Enum plexus::MeshArity

pub enum MeshArity {
    Uniform(usize),
    NonUniform(usizeusize),
}

Arity of a compound structure.

MeshArity represents the arity of a compound structure, which may be uniform or non-uniform. This is typically the value-level arity for mesh data structures like MeshGraph and MeshBuffer.

Variants

Uniform(usize)

A compound structure has uniform arity if all of its components have the same arity, such as a MeshBuffer composed entirely of trigons.

NonUniform(usizeusize)

A compound structure has non-uniform arity if the arity of its components differ, such as a MeshGraph composed of trigons and tetragons.

Non-uniform arity is represented as an inclusive range known as an interval. This is the minimum and maximum arity of the components, in that order.

Methods

impl MeshArity[src]

pub fn from_components<T, I>(components: I) -> Self where
    T: DynamicArity<Dynamic = usize>,
    I: IntoIterator,
    I::Item: Borrow<T>, 
[src]

Trait Implementations

impl Arity for MeshArity[src]

impl Clone for MeshArity[src]

impl Copy for MeshArity[src]

impl Debug for MeshArity[src]

impl PartialEq<MeshArity> for MeshArity[src]

impl StructuralPartialEq for MeshArity[src]

Auto Trait Implementations

impl RefUnwindSafe for MeshArity

impl Send for MeshArity

impl Sync for MeshArity

impl Unpin for MeshArity

impl UnwindSafe for MeshArity

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,