pub fn parse(n: &str) -> Option<NonSmallInt> {
        let mut digits = Vec::new();
        let mut is_number = true;
        for c in n.trim().chars() {
            if c.is_digit(RADIX as u32) {
                digits.push(c.to_digit(RADIX as u32).expect("Failed to parse digit") as u8)
            } else {
                is_number = false;
            }
        };
        digits.reverse();

        if is_number {
            Some(NonSmallInt { digits: digits})
        } else {
            None
        }
    }
/// Parses from a radix 10 number
Parses from a radix 10 number
Parses from a radix 10 number
pub fn parse(n: &str) -> Option<NonSmallInt> {
        let mut digits = Vec::new();
        let mut is_number = true;
        for c in n.trim().chars() {
            if c.is_digit(RADIX as u32) {
                digits.push(c.to_digit(RADIX as u32).expect("Failed to parse digit") as u8)
            } else {
                is_number = false;
            }
        };
        digits.reverse();
        if is_number {
            Some(NonSmallInt { digits: digits})
        } else {
            None
        }
    }
pub fn parse ( n : & str ) -> Option < NonSmallInt > { let mut digits = Vec :: new ( ) ; let mut is_number = true ; for c in n . trim ( ) . chars ( ) { if c . is_digit ( RADIX as u32 ) { digits . push ( c . to_digit ( RADIX as u32 ) . expect ( " " ) as u8 ) } else { is_number = false ; } } ; digits . reverse ( ) ; if is_number { Some ( NonSmallInt { digits : digits } ) } else { None } }
Parses from a radix 10 number
Parses from a radix 10 number
n
&str
n
&str