fn from_str(s: &str) -> Result<Self, Self::Err> {
        let mut pairs =
            EdnParser::parse(Rule::stream, s).map_err(|e| RustbrewError::InvalidSyntax {
                message: e.to_string(),
            })?;
        match pairs.next() {
            Some(p) => parse_edn_element(p),
            None => Err(RustbrewError::MissingPair {
                expected: "top-level element".to_string(),
            }),
        }
    }
/// Convert a string to an EDN element.
Convert a string to an EDN element.
Convert a string to an EDN element .
fn from_str(s: &str) -> Result<Self, Self::Err> {
        let mut pairs =
            EdnParser::parse(Rule::stream, s).map_err(|e| RustbrewError::InvalidSyntax {
                message: e.to_string(),
            })?;
        match pairs.next() {
            Some(p) => parse_edn_element(p),
            None => Err(RustbrewError::MissingPair {
                expected: "top-level element".to_string(),
            }),
        }
    }
fn from_str ( s : & str ) -> Result < Self , Self :: Err > { let mut pairs = EdnParser :: parse ( Rule :: stream , s ) . map_err ( | e | RustbrewError :: InvalidSyntax { message : e . to_string ( ) , } ) ? ; match pairs . next ( ) { Some ( p ) => parse_edn_element ( p ) , None => Err ( RustbrewError :: MissingPair { expected : " " . to_string ( ) , } ) , } }
Convert a string to an EDN element.
Convert a string to an EDN element .
s
&str
s
&str