pub trait ElementIncidenceCount: IncidenceBase {
// Required method
fn element_incidence_count(&self, element: Self::ElementId) -> usize;
}Expand description
Exact element-incidence count capability.
This pairs with ElementIncidences for backends that can report an
element’s incidence count without traversal. The trait does not require
traversal support by itself.
§Performance
Expected O(1) unless the implementation documents otherwise.
Required Methods§
Sourcefn element_incidence_count(&self, element: Self::ElementId) -> usize
fn element_incidence_count(&self, element: Self::ElementId) -> usize
Returns the number of incidences attached to element.
§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".