Skip to main content

ConflictDetectionStrategy

Trait ConflictDetectionStrategy 

Source
pub trait ConflictDetectionStrategy: Send + Sync {
    // Required methods
    fn detect_conflict(
        &self,
        goal1: &Goal,
        goal2: &Goal,
    ) -> GoalAlignmentResult<Option<GoalConflict>>;
    fn name(&self) -> &str;
}
Expand description

Trait for conflict detection strategies

Required Methods§

Source

fn detect_conflict( &self, goal1: &Goal, goal2: &Goal, ) -> GoalAlignmentResult<Option<GoalConflict>>

Detect conflicts between two goals

Source

fn name(&self) -> &str

Get strategy name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§