Skip to main content

PathScore

Trait PathScore 

Source
pub trait PathScore<Task> {
    // Required method
    fn path_score(&self, path: &[Task]) -> Option<u64>;
}
Expand description

The value of a whole path: the tasks an agent holds, in execution order.

Wrap a path score in BestInsertion to get a Valuation that inserts each new task where it adds the most.

Required Methods§

Source

fn path_score(&self, path: &[Task]) -> Option<u64>

The value of executing path in order; None when the agent cannot execute it, for example because a task would miss its deadline.

The empty path must be feasible.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§