Skip to main content

IncidenceRelation

Trait IncidenceRelation 

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

Capability for resolving the relation side of an incidence.

§Performance

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

Required Methods§

Source

fn incidence_relation(&self, incidence: Self::IncidenceId) -> Self::RelationId

Returns the relation containing 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§