Priority

Trait Priority 

Source
pub trait Priority {
    // Required methods
    fn priority(&self) -> i32;
    fn set_priority(&self, val: i32);
}
Expand description

The Priority should be implemented by objects intended to be ranked or sorted.

Required Methods§

Source

fn priority(&self) -> i32

The rank score of this item. Higher numbers should be considered on top of the list, therefore of higher priority.

Source

fn set_priority(&self, val: i32)

Set the rank score of this item.

Implementors§