Skip to main content

IncidenceElement

Trait IncidenceElement 

Source
pub trait IncidenceElement: IncidenceBase {
    // Required method
    fn incidence_element(&self, incidence: Self::IncidenceId) -> Self::ElementId;
}
Expand description

Capability for resolving the element side of an incidence.

§Performance

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

Required Methods§

Source

fn incidence_element(&self, incidence: Self::IncidenceId) -> Self::ElementId

Returns the element participating through incidence.

§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§