Trait primitives::prelude::Priority
source · [−]pub trait Priority {
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
The rank score of this item. Higher numbers should be considered on top of the list, therefore of higher priority.
fn set_priority(&self, val: i32)
fn set_priority(&self, val: i32)
Set the rank score of this item.