pub fn eval(&self, scope: ScopeRef) -> Result<css::Selectors, Error> {
        let s = css::Selectors::new(
            self.s
                .iter()
                .map(|s| s.eval(scope.clone()))
                .collect::<Result<Vec<_>, Error>>()?,
        );
        // The "simple" parts we get from evaluating interpolations may
        // contain high-level selector separators (i.e. ","), so we need to
        // parse the selectors again, from a string representation.
        use crate::parser::css::selectors;
        use crate::parser::input_span;
        // TODO: Get the span from the source of self!
        Ok(ParseError::check(selectors(input_span(
            format!("{} ", s).as_bytes(),
        )))?)
    }
/// Evaluate any interpolation in these Selectors.
Evaluate any interpolation in these Selectors.
Evaluate any interpolation in these Selectors .
pub fn eval(&self, scope: ScopeRef) -> Result<css::Selectors, Error> {
        let s = css::Selectors::new(
            self.s
                .iter()
                .map(|s| s.eval(scope.clone()))
                .collect::<Result<Vec<_>, Error>>()?,
        );
        // The "simple" parts we get from evaluating interpolations may
        // contain high-level selector separators (i.e. ","), so we need to
        // parse the selectors again, from a string representation.
        use crate::parser::css::selectors;
        use crate::parser::input_span;
        // TODO: Get the span from the source of self!
        Ok(ParseError::check(selectors(input_span(
            format!("{} ", s).as_bytes(),
        )))?)
    }
pub fn eval ( & self , scope : ScopeRef ) -> Result < css :: Selectors , Error > { let s = css :: Selectors :: new ( self . s . iter ( ) . map ( | s | s . eval ( scope . clone ( ) ) ) . collect :: < Result < Vec < _ > , Error > > ( ) ? , ) ; // The "simple" parts we get from evaluating interpolations may // contain high-level selector separators (i.e. ","), so we need to // parse the selectors again, from a string representation. use crate :: parser :: css :: selectors ; use crate :: parser :: input_span ; // TODO: Get the span from the source of self! Ok ( ParseError :: check ( selectors ( input_span ( format ! ( " " s ) . as_bytes ( ) , ) ) ) ? ) }
Evaluate any interpolation in these Selectors.
Evaluate any interpolation in these Selectors .
&self
scope
ScopeRef
&self
scope
ScopeRef