Advertisement
cwchen

[Rust] Priority trait

Sep 3rd, 2017
3,409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.10 KB | None | 0 0
  1. pub trait Priority {
  2.     fn get_priority(&self) -> i32;
  3.     fn set_priority(&mut self, value: i32);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement