pub fn string2u64(st: &str) -> std::result::Result<u64, std::num::ParseIntError> {
    let mut ret: u64 = 0;
    let mut ret_str = String::from("");
    for c in st.chars() {
        if c.is_digit(10) {
        ret_str.push(c);
        }
    }
    u64::from_str(&ret_str)
}
/// Given a string convert it to u64
Given a string convert it to u64
Given a string convert it to u64
pub fn string2u64(st: &str) -> std::result::Result<u64, std::num::ParseIntError> {
    let mut ret: u64 = 0;
    let mut ret_str = String::from("");
    for c in st.chars() {
        if c.is_digit(10) {
        ret_str.push(c);
        }
    }
    u64::from_str(&ret_str)
}
pub fn string2u64 ( st : & str ) -> std :: result :: Result < u64 , std :: num :: ParseIntError > { let mut ret : u64 = 0 ; let mut ret_str = String :: from ( " " ) ; for c in st . chars ( ) { if c . is_digit ( 10 ) { ret_str . push ( c ) ; } } u64 :: from_str ( & ret_str ) }
Given a string convert it to u64
Given a string convert it to u64
st
&str
st
&str