Prioritized

Trait Prioritized 

Source
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§

Source

type Kind: PartialEq + Eq + Copy

The type of the priority value used by the implementor.

Required Methods§

Source

fn Rank(&self) -> Self::Kind

A method to retrieve the priority of the item.

Implementors§

Source§

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.