[][src]Trait plexus::Arity

pub trait Arity: Copy {
    fn into_interval(self) -> (usize, Option<usize>);
}

Arity of primitives and polygonal meshes.

The arity of a primitive topological structure (e.g., an edge, trigon, pentagon, etc.) is the number of edges that comprise the structure. For compound structures like polygonal meshes, arity describes the individual polygons that form the structure and may not be representable as a singular value.

Arity is most generally described as an open interval with a minimum and optional maximum inclusive range. This trait provides a conversion into this general form for all types that represent arity. See the implementations of this trait for more information.

Types with arity implement the StaticArity and DynamicArity traits, which describe their type-level and value-level arity, respectively.

Required methods

fn into_interval(self) -> (usize, Option<usize>)

Loading content...

Implementations on Foreign Types

impl Arity for usize[src]

Singular arity.

impl Arity for (usize, usize)[src]

Closed interval arity.

This type represents a closed interval arity with a minimum and maximum inclusive range.

impl Arity for (usize, Option<usize>)[src]

Open interval arity.

This type represents an open interval arity with a minimum and optional maximum inclusive range. When there is no maximum (None), the maximum arity is unspecified. This typically means that there is no theoretical maximum.

Loading content...

Implementors

impl Arity for MeshArity[src]

Loading content...