fn push_token_parsers<I>(&mut self, iterable: I) -> Result<(), Traced<ExtensionRegistryError>> where
        I: IntoIterator<Item=(String, Box<ext::TokenParser>)>
    {
        for (k, v) in iterable {
            // #NOTE:60 can't have a reference to something owned within the same struct
            // and don't want to clone!
            //
            // if let Some(prev) = self._token_parser_by_tags.insert(v.tag().to_string(), &v) {
            //     return traced_err!(ExtensionRegistryError::DuplicateTagHandler {
            //         prev: prev,
            //         ext_name: ext.name()
            //     })
            // }

            if let Some(prev) = self.staged.token_parsers.insert(k, v) {
                return traced_err!(ExtensionRegistryError::DuplicateTokenParser {
                    prev: prev
                })
            }
        }

        Ok(())
    }
/// Register token parser instances with the engine.
Register token parser instances with the engine.
Register token parser instances with the engine .
fn push_token_parsers<I>(&mut self, iterable: I) -> Result<(), Traced<ExtensionRegistryError>> where
        I: IntoIterator<Item=(String, Box<ext::TokenParser>)>
    {
        for (k, v) in iterable {
            // #NOTE:60 can't have a reference to something owned within the same struct
            // and don't want to clone!
            //
            // if let Some(prev) = self._token_parser_by_tags.insert(v.tag().to_string(), &v) {
            //     return traced_err!(ExtensionRegistryError::DuplicateTagHandler {
            //         prev: prev,
            //         ext_name: ext.name()
            //     })
            // }
            if let Some(prev) = self.staged.token_parsers.insert(k, v) {
                return traced_err!(ExtensionRegistryError::DuplicateTokenParser {
                    prev: prev
                })
            }
        }
        Ok(())
    }
fn push_token_parsers < I > ( & mut self , iterable : I ) -> Result < ( ) , Traced < ExtensionRegistryError > > where I : IntoIterator < Item = ( String , Box < ext :: TokenParser > ) > { for ( k , v ) in iterable { // #NOTE:60 can't have a reference to something owned within the same struct // and don't want to clone! // // if let Some(prev) = self._token_parser_by_tags.insert(v.tag().to_string(), &v) { //     return traced_err!(ExtensionRegistryError::DuplicateTagHandler { //         prev: prev, //         ext_name: ext.name() //     }) // } if let Some ( prev ) = self . staged . token_parsers . insert ( k , v ) { return traced_err ! ( ExtensionRegistryError DuplicateTokenParser { prev prev } ) } } Ok ( ( ) ) }
Register token parser instances with the engine.
Register token parser instances with the engine .
&mut self
iterable
I
&mut self
iterable
I