/// Translates a priority value to a numeric value
Translates a priority value to a numeric value
Translates a priority value to a numeric value
fn priority_to_num(p: Priority) -> i32 {
        match p {
            Priority::Stash => -1,
            Priority::Drop => 0,
            Priority::FetchNow => 1,
            Priority::Fetch => 2,
            Priority::Later => 3,
        }
    }
fn priority_to_num ( p : Priority ) -> i32 { match p { Priority :: Stash => - 1 , Priority :: Drop => 0 , Priority :: FetchNow => 1 , Priority :: Fetch => 2 , Priority :: Later => 3 , } }
Translates a priority value to a numeric value
Translates a priority value to a numeric value
p
Priority