subconverter 0.2.34

A more powerful utility to convert between proxy subscription format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12

pub fn is_empty_option_string(s: &Option<String>) -> bool {
    s.is_none() || s.as_ref().unwrap().is_empty()
}

pub fn is_u32_option_zero(u: &Option<u32>) -> bool {
    if let Some(u) = u {
        *u == 0
    } else {
        true
    }
}