fn octal_string_to_number(&self, str: &'a [u8]) -> Option<usize> {
        let str = match str.iter().position(|x| *x == 0) {
            Some(i) => &str[..i],
            None => str,
        };

        str.iter().try_fold(0, |sum, c| match *c {
            b'0'..=b'9' => Some(sum * 8 + (*c - b'0') as usize),
            _ => None,
        })
    }
/// Converts an octal string to a number.
Converts an octal string to a number.
Converts an octal string to a number .
fn octal_string_to_number(&self, str: &'a [u8]) -> Option<usize> {
        let str = match str.iter().position(|x| *x == 0) {
            Some(i) => &str[..i],
            None => str,
        };
        str.iter().try_fold(0, |sum, c| match *c {
            b'0'..=b'9' => Some(sum * 8 + (*c - b'0') as usize),
            _ => None,
        })
    }
fn octal_string_to_number ( & self , str : & ' a [ u8 ] ) -> Option < usize > { let str = match str . iter ( ) . position ( | x | * x == 0 ) { Some ( i ) => & str [ .. i ] , None => str , } ; str . iter ( ) . try_fold ( 0 , | sum , c | match * c { b'0' ..= b'9' => Some ( sum * 8 + ( * c - b'0' ) as usize ) , _ => None , } ) }
Converts an octal string to a number.
Converts an octal string to a number .
&self
str
&'a [u8]
&self
str
&'a [u8]