pub trait Prioritized {
type Kind: PartialEq + Eq + Copy;
// Required method
fn Rank(&self) -> Self::Kind;
}Expand description
Defines a contract for types that can be prioritized by the queue.
Required Associated Types§
Required Methods§
Implementors§
Source§impl Prioritized for Task
Implements the Prioritized trait required by the generic StealingQueue.
impl Prioritized for Task
Implements the Prioritized trait required by the generic StealingQueue.
This implementation provides the bridge between the application-specific
Task::Priority and the generic Queue::StealingQueue::Priority used
internally by the queue system.