pub fn to_value(&self) -> Value {
        if self.s.len() == 1 && self.s[0].0.is_empty() {
            return Value::Null;
        }
        let content = self
            .s
            .iter()
            .map(|s: &Selector| {
                Value::List(
                    s.to_string()
                        .split_whitespace()
                        .map(|p| Value::Literal(p.to_string(), Quotes::None))
                        .collect(),
                    ListSeparator::Space,
                    false,
                )
            })
            .collect::<Vec<_>>();
        let sep = if content.len() == 1 {
            ListSeparator::Space
        } else {
            ListSeparator::Comma
        };
        Value::List(content, sep, false)
    }
/// Create a sass `Value` representing this set of selectors.
Create a sass `Value` representing this set of selectors.
Create a sass ` Value ` representing this set of selectors .
pub fn to_value(&self) -> Value {
        if self.s.len() == 1 && self.s[0].0.is_empty() {
            return Value::Null;
        }
        let content = self
            .s
            .iter()
            .map(|s: &Selector| {
                Value::List(
                    s.to_string()
                        .split_whitespace()
                        .map(|p| Value::Literal(p.to_string(), Quotes::None))
                        .collect(),
                    ListSeparator::Space,
                    false,
                )
            })
            .collect::<Vec<_>>();
        let sep = if content.len() == 1 {
            ListSeparator::Space
        } else {
            ListSeparator::Comma
        };
        Value::List(content, sep, false)
    }
pub fn to_value ( & self ) -> Value { if self . s . len ( ) == 1 && self . s [ 0 ] . 0 . is_empty ( ) { return Value :: Null ; } let content = self . s . iter ( ) . map ( | s : & Selector | { Value :: List ( s . to_string ( ) . split_whitespace ( ) . map ( | p | Value :: Literal ( p . to_string ( ) , Quotes :: None ) ) . collect ( ) , ListSeparator :: Space , false , ) } ) . collect :: < Vec < _ > > ( ) ; let sep = if content . len ( ) == 1 { ListSeparator :: Space } else { ListSeparator :: Comma } ; Value :: List ( content , sep , false ) }
Create a sass `Value` representing this set of selectors.
Create a sass ` Value ` representing this set of selectors .
&self
&self