Skip to main content

IncidenceRole

Trait IncidenceRole 

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

Capability for resolving a role attached to an incidence.

Roles are implementation-defined topology labels. The core never interprets them.

§Performance

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

Required Methods§

Source

fn incidence_role(&self, incidence: Self::IncidenceId) -> Self::Role

Returns the role for 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§