pub fn parse_array<T: FromStr>(&self) -> Option<Vec<T>> {
        match self {
            Value::Array(array) => {
                let mut ret = Vec::new();
                for arg in array {
                    let value = lit_to_string(arg);
                    let n = T::from_str(&value).ok()?;
                    ret.push(n);
                }
                Some(ret)
            }
            _ => None,
        }
    }
/// Parses this value into a `Vec<T>`
///
/// # Returns None
/// - `None` if the value is not an array literal.
/// - `None` if the parse fails.
Parses this value into a `Vec`
Parses this value into a ` Vec `
pub fn parse_array<T: FromStr>(&self) -> Option<Vec<T>> {
        match self {
            Value::Array(array) => {
                let mut ret = Vec::new();
                for arg in array {
                    let value = lit_to_string(arg);
                    let n = T::from_str(&value).ok()?;
                    ret.push(n);
                }
                Some(ret)
            }
            _ => None,
        }
    }
pub fn parse_array < T : FromStr > ( & self ) -> Option < Vec < T > > { match self { Value :: Array ( array ) => { let mut ret = Vec :: new ( ) ; for arg in array { let value = lit_to_string ( arg ) ; let n = T :: from_str ( & value ) . ok ( ) ? ; ret . push ( n ) ; } Some ( ret ) } _ => None , } }
Parses this value into a `Vec<T>`
Parses this value into a ` Vec<T > `
&self
&self
returns none
`None` if the value is not an array literal.
`None` if the parse fails.
` None ` if the value is not an array literal . ` None ` if the parse fails .