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§
Sourcefn priority(&self) -> i32
fn priority(&self) -> i32
The rank score of this item. Higher numbers should be considered on top of the list, therefore of higher priority.
Sourcefn set_priority(&self, val: i32)
fn set_priority(&self, val: i32)
Set the rank score of this item.