fn number_from_id(id: Id) -> u64 {
    match id {
        Id::Num(n) => n as u64,
        Id::Str(ref s) => u64::from_str_radix(s, 10).expect("failed to convert string id to u64"),
        _ => panic!("unexpected value for id: None"),
    }
}
/// Get numeric id from the request id.
Get numeric id from the request id.
Get numeric id from the request id .
fn number_from_id(id: Id) -> u64 {
    match id {
        Id::Num(n) => n as u64,
        Id::Str(ref s) => u64::from_str_radix(s, 10).expect("failed to convert string id to u64"),
        _ => panic!("unexpected value for id: None"),
    }
}
fn number_from_id ( id : Id ) -> u64 { match id { Id :: Num ( n ) => n as u64 , Id :: Str ( ref s ) => u64 :: from_str_radix ( s , 10 ) . expect ( " " ) , _ => panic ! ( " " ) , } }
Get numeric id from the request id.
Get numeric id from the request id .
id
Id