pub trait ElementIncidences: IncidenceBase {
type Incidences<'view>: Iterator<Item = Self::IncidenceId>
where Self: 'view;
// Required method
fn element_incidences(
&self,
element: Self::ElementId,
) -> Self::Incidences<'_>;
}Expand description
Capability for traversing incidences attached to an element.
This is the topology-general form of asking which relations mention an element.
§Performance
Creating the iterator should be O(1) unless an implementation documents a
weaker contract. Yielding k incidences should be O(k) because the output
itself has length k.
Required Associated Types§
Sourcetype Incidences<'view>: Iterator<Item = Self::IncidenceId>
where
Self: 'view
type Incidences<'view>: Iterator<Item = Self::IncidenceId> where Self: 'view
Iterator over incidence IDs for one element.
§Performance
Advancing the iterator should be amortized O(1) unless an
implementation documents otherwise.
Required Methods§
Sourcefn element_incidences(&self, element: Self::ElementId) -> Self::Incidences<'_>
fn element_incidences(&self, element: Self::ElementId) -> Self::Incidences<'_>
Returns incidences attached to element.
§Performance
Expected O(1) to create the iterator; yielding k incidences is
expected O(k).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".