Skip to main content

IncidenceCounts

Trait IncidenceCounts 

Source
pub trait IncidenceCounts: IncidenceBase {
    // Required method
    fn incidence_count(&self) -> usize;
}
Expand description

Count capability for incidence-capable topology views.

This trait is separated from TopologyCounts because not every topology view exposes incidence records. Graph-only views can count nodes and edges without defining endpoint-incidence identities.

§Performance

Methods should be O(1) unless an implementation documents a weaker contract.

Required Methods§

Source

fn incidence_count(&self) -> usize

Returns the number of incidences visible in this topology view.

§Performance

Expected O(1) unless the implementation documents otherwise.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§