Skip to main content

ParticipantRoleOf

Trait ParticipantRoleOf 

Source
pub trait ParticipantRoleOf: IncidenceRole {
    // Provided method
    fn participant_role_of(
        &self,
        participant: ParticipantId<Self>,
    ) -> ParticipantRole<Self> { ... }
}
Expand description

Capability for resolving the role recorded for a participant.

Hypergraph-facing name for IncidenceRole. Trait name ParticipantRoleOf avoids colliding with the existing ParticipantRole type alias.

Provided Methods§

Source

fn participant_role_of( &self, participant: ParticipantId<Self>, ) -> ParticipantRole<Self>

Returns the role recorded for participant.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§