Skip to main content

HyperedgeParticipantCount

Trait HyperedgeParticipantCount 

Source
pub trait HyperedgeParticipantCount: IncidenceBase {
    // Required method
    fn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize;
}
Expand description

Exact hyperedge-participant count capability.

Pairs with HyperedgeParticipants for backends that can report a hyperedge’s participant count without traversal.

Required Methods§

Source

fn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize

Returns the number of participants attached to hyperedge.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§