[][src]Trait plexus::DynamicArity

pub trait DynamicArity: StaticArity {
    type Dynamic: Arity;
    fn arity(&self) -> Self::Dynamic;
}

Value-level arity.

This trait specifies the arity of a value at runtime. This is often distinct from the type-level arity of the StaticArity trait, which expresses the capabilities of a type.

Associated Types

type Dynamic: Arity

Loading content...

Required methods

fn arity(&self) -> Self::Dynamic

Loading content...

Implementors

impl<A, N, G> DynamicArity for MeshBuffer<Flat<A, N>, G> where
    A: NonZero + Unsigned,
    N: Copy + Integer + Unsigned
[src]

type Dynamic = <Flat<A, N> as StaticArity>::Static

impl<B, M, G> DynamicArity for FaceView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Arc<G>> + AsStorage<Face<G>> + Consistent + Parametric<Data = G>,
    G: GraphData
[src]

type Dynamic = usize

fn arity(&self) -> Self::Dynamic[src]

Gets the arity of the face. This is the number of arcs that form the face's ring.

impl<B, M, G> DynamicArity for Ring<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Arc<G>> + Consistent + Parametric<Data = G>,
    G: GraphData
[src]

type Dynamic = usize

fn arity(&self) -> Self::Dynamic[src]

Gets the arity of the ring. This is the number of arcs that form the path.

impl<G> DynamicArity for MeshGraph<G> where
    G: GraphData
[src]

type Dynamic = MeshArity

impl<N, G> DynamicArity for MeshBuffer<BoundedPolygon<N>, G> where
    N: Copy + Integer + Unsigned
[src]

type Dynamic = MeshArity

impl<N, G> DynamicArity for MeshBuffer<UnboundedPolygon<N>, G> where
    N: Copy + Integer + Unsigned
[src]

type Dynamic = MeshArity

impl<P, G> DynamicArity for MeshBuffer<P, G> where
    P: Grouping + Monomorphic + Polygonal,
    P::Vertex: Copy + Integer + Unsigned
[src]

type Dynamic = <P as StaticArity>::Static

impl<T> DynamicArity for BoundedPolygon<T>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 2]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 3]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 4]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 5]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 6]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 7]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 8]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 9]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 10]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 11]>[src]

type Dynamic = usize

impl<T> DynamicArity for NGon<[T; 12]>[src]

type Dynamic = usize

impl<T> DynamicArity for UnboundedPolygon<T>[src]

type Dynamic = usize

Loading content...