pub fn iter_items(self) -> Vec<Value> {
        match self {
            Value::List(v, _, _) => v,
            Value::Map(map) => map
                .iter()
                .map(|&(ref k, ref v)| {
                    Value::List(
                        vec![k.clone(), v.clone()],
                        ListSeparator::Space,
                        false,
                    )
                })
                .collect(),
            Value::Paren(v) => v.iter_items(),
            v => vec![v],
        }
    }
/// Get this value as iterable items.
///
/// Lists and maps have iterable items, which are returned as a
/// vector of values.  Other values are returned as a vec
/// containing the value as a single item.
Get this value as iterable items.
Lists and maps have iterable items, which are returned as a
vector of values.  Other values are returned as a vec
containing the value as a single item.
Get this value as iterable items . Lists and maps have iterable items which are returned as a vector of values . Other values are returned as a vec containing the value as a single item .
pub fn iter_items(self) -> Vec<Value> {
        match self {
            Value::List(v, _, _) => v,
            Value::Map(map) => map
                .iter()
                .map(|&(ref k, ref v)| {
                    Value::List(
                        vec![k.clone(), v.clone()],
                        ListSeparator::Space,
                        false,
                    )
                })
                .collect(),
            Value::Paren(v) => v.iter_items(),
            v => vec![v],
        }
    }
pub fn iter_items ( self ) -> Vec < Value > { match self { Value :: List ( v , _ , _ ) => v , Value :: Map ( map ) => map . iter ( ) . map ( | & ( ref k , ref v ) | { Value :: List ( vec ! [ k clone ( ) v clone ( ) ] , ListSeparator :: Space , false , ) } ) . collect ( ) , Value :: Paren ( v ) => v . iter_items ( ) , v => vec ! [ v ] , } }
Get this value as iterable items.
Get this value as iterable items .
self
self