pub trait HyperedgeParticipantCount: RelationIncidenceCount {
// Provided method
fn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize { ... }
}Expand description
Exact hyperedge-participant count capability.
Hypergraph-facing name for RelationIncidenceCount: a hyperedge’s
participant count is its relation’s incidence count. The default body and
blanket impl mean any RelationIncidenceCount backend gets this vocabulary
name for free, matching the ParticipantCounts/HypergraphCounts
pattern; backends implement only the topology count trait once.
Provided Methods§
Sourcefn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize
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".