pub fn as_vec<'a>(&'a self) -> Vec<&'a str> {
        match *self {
            Switch(_) | Counted(_) | Plain(None) => vec!(),
            Plain(Some(ref s)) => vec!(s.as_slice()),
            List(ref vs) => vs.iter().map(|s| s.as_slice()).collect(),
        }
    }
/// Returns the value as a list of strings.
///
/// Booleans, repetitions and empty strings correspond to an empty list.
/// Plain strings correspond to a list of length `1`.
Returns the value as a list of strings.
Booleans, repetitions and empty strings correspond to an empty list.
Plain strings correspond to a list of length `1`.
Returns the value as a list of strings . Booleans repetitions and empty strings correspond to an empty list . Plain strings correspond to a list of length ` 1 ` .
pub fn as_vec<'a>(&'a self) -> Vec<&'a str> {
        match *self {
            Switch(_) | Counted(_) | Plain(None) => vec!(),
            Plain(Some(ref s)) => vec!(s.as_slice()),
            List(ref vs) => vs.iter().map(|s| s.as_slice()).collect(),
        }
    }
pub fn as_vec < ' a > ( & ' a self ) -> Vec < & ' a str > { match * self { Switch ( _ ) | Counted ( _ ) | Plain ( None ) => vec ! ( ) , Plain ( Some ( ref s ) ) => vec ! ( s as_slice ( ) ) , List ( ref vs ) => vs . iter ( ) . map ( | s | s . as_slice ( ) ) . collect ( ) , } }
Returns the value as a list of strings.
Returns the value as a list of strings .
&'a self
&'a self