fn selector(i: &str) -> IResult<&str, Selector, VerboseError<&str>> {
        #[cfg(test)]
        trace!("Selector: {}", i);

        Self::expect_non_empty(i)?;

        let result = context(
            "Selector",
            Self::trimmed(map(
                recognize(many1(alt((
                    recognize(preceded(none_of("$,}@{\""), opt(is_not("$,\"{")))),
                    Self::string,
                    recognize(Self::interpolation),
                )))),
                |p: &str| vec![p.trim().to_owned().into()].into(),
            )),
        )(i);

        #[cfg(test)]
        trace!("Selector: {:#?}", result);

        result
    }
/// Parse a selector.
///
// TODO: Parse selector properly.
Parse a selector.
TODO: Parse selector properly.
Parse a selector . TODO : Parse selector properly .
fn selector(i: &str) -> IResult<&str, Selector, VerboseError<&str>> {
        #[cfg(test)]
        trace!("Selector: {}", i);
        Self::expect_non_empty(i)?;
        let result = context(
            "Selector",
            Self::trimmed(map(
                recognize(many1(alt((
                    recognize(preceded(none_of("$,}@{\""), opt(is_not("$,\"{")))),
                    Self::string,
                    recognize(Self::interpolation),
                )))),
                |p: &str| vec![p.trim().to_owned().into()].into(),
            )),
        )(i);
        #[cfg(test)]
        trace!("Selector: {:#?}", result);
        result
    }
fn selector ( i : & str ) -> IResult < & str , Selector , VerboseError < & str > > { # [ cfg ( test ) ] trace ! ( " " i ) ; Self :: expect_non_empty ( i ) ? ; let result = context ( " " , Self :: trimmed ( map ( recognize ( many1 ( alt ( ( recognize ( preceded ( none_of ( " \" " ) , opt ( is_not ( " \" " ) ) ) ) , Self :: string , recognize ( Self :: interpolation ) , ) ) ) ) , | p : & str | vec ! [ p trim ( ) to_owned ( ) into ( ) ] . into ( ) , ) ) , ) ( i ) ; # [ cfg ( test ) ] trace ! ( " " result ) ; result }
Parse a selector.
Parse a selector .
i
&str
i
&str