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§
Sourcefn participant_role_of(
&self,
participant: ParticipantId<Self>,
) -> ParticipantRole<Self>
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".