var searchIndex = {}; searchIndex["xml5ever"] = {"doc":"This crate provides a push based XML parser library that\nadheres to XML5 specification. In other words this library\ntrades well-formedness for error recovery.","items":[[5,"parse_to","xml5ever","Parse and send results to a `TreeSink`.",null,{"inputs":[{"name":"sink"},{"name":"it"},{"name":"xmltokenizeropts"}],"output":{"name":"sink"}}],[5,"parse","","Parse into a type which implements `ParseResult`.",null,{"inputs":[{"name":"it"},{"name":"xmltokenizeropts"}],"output":{"name":"output"}}],[5,"tokenize_to","","Tokenize and send results to a `XTokenSink`.",null,{"inputs":[{"name":"sink"},{"name":"it"},{"name":"xmltokenizeropts"}],"output":{"name":"sink"}}],[0,"tendril","","Re-export the tendril crate so that users don’t need to depend on it.",null,null],[0,"tokenizer","","XML5 tokenizer - converts input into tokens",null,null],[3,"Attribute","xml5ever::tokenizer","A tag attribute.",null,null],[12,"name","","Qualified name of attribute.",0,null],[12,"value","","Attribute's value.",0,null],[3,"Doctype","","A `DOCTYPE` token.\nDoctype token in XML5 is rather limited for reasons, such as:\nsecurity and simplicity. XML5 only supports declaring DTD with\nname, public identifier and system identifier",null,null],[12,"name","","Name of DOCTYPE declared",1,null],[12,"public_id","","Public identifier of this DOCTYPE.",1,null],[12,"system_id","","System identifier of this DOCTYPE.",1,null],[3,"Pi","","A ProcessingInstruction token.",null,null],[12,"target","","What is the name of processing instruction.",2,null],[12,"data","","Text of processing instruction.",2,null],[3,"QName","","Fully qualified name. Used to depict names of tags and attributes.",null,null],[12,"prefix","","Prefix of fully qualified name, used for namespace lookup.",3,null],[12,"local","","Local name of a value.",3,null],[12,"namespace_url","","Resolved namespace of `QName`.",3,null],[3,"Tag","","XML 5 Tag Token",null,null],[12,"kind","","Token kind denotes which type of token was encountered.\nE.g. if parser parsed `</a>` the token kind would be `EndTag`.",4,null],[12,"name","","Qualified name of the tag.",4,null],[12,"attrs","","List of attributes attached to this tag.\nOnly valid in start and empty tag.",4,null],[3,"XmlTokenizerOpts","","Copy of Tokenizer options, with an impl for `Default`.",null,null],[12,"exact_errors","","Report all parse errors described in the spec, at some\nperformance penalty? Default: false",5,null],[12,"discard_bom","","Discard a `U+FEFF BYTE ORDER MARK` if we see one at the beginning\nof the stream? Default: true",5,null],[12,"profile","","Keep a record of how long we spent in each state? Printed\nwhen `end()` is called. Default: false",5,null],[12,"initial_state","","Initial state override. Only the test runner should use\na non-`None` value!",5,null],[3,"XmlTokenizer","","The Xml tokenizer.",null,null],[4,"TagKind","","Tag kind denotes which kind of tag did we encounter.",null,null],[13,"StartTag","","Beginning of a tag (e.g. `<a>`).",6,null],[13,"EndTag","","End of a tag (e.g. `</a>`).",6,null],[13,"EmptyTag","","Empty tag (e.g. `<a/>`).",6,null],[13,"ShortTag","","Short tag (e.g. `</>`).",6,null],[4,"Token","","Describes tokens encountered during parsing of input.",null,null],[13,"DoctypeToken","","Doctype token",7,null],[13,"TagToken","","Token tag founds. This token applies to all\npossible kinds of tags (like start, end, empty tag, etc.).",7,null],[13,"PIToken","","Processing Instruction token",7,null],[13,"CommentToken","","Comment token.",7,null],[13,"CharacterTokens","","Token that represents a series of characters.",7,null],[13,"EOFToken","","End of File found.",7,null],[13,"NullCharacterToken","","NullCharacter encountered.",7,null],[13,"ParseError","","Error happened",7,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"cmp","","",3,null],[11,"partial_cmp","","",3,null],[11,"lt","","",3,null],[11,"le","","",3,null],[11,"gt","","",3,null],[11,"ge","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"new","","Constructs a new `QName` from prefix and local part.\nNamespace is set to empty atom.",3,{"inputs":[{"name":"atom"},{"name":"atom"}],"output":{"name":"qname"}}],[11,"new_empty","","Constructs a new `QName` with only local part.\nNamespace is set to empty atom.",3,{"inputs":[{"name":"atom"}],"output":{"name":"qname"}}],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"hash","","",6,null],[11,"eq","","",6,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"equiv_modulo_attr_order","","Sorts attributes in a tag.",4,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"lt","","",0,null],[11,"le","","",0,null],[11,"gt","","",0,null],[11,"ge","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"new","","Constructs an empty DOCTYPE, with all fields set to None.",1,{"inputs":[],"output":{"name":"doctype"}}],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[0,"states","","Tokenizer states.",null,null],[8,"TokenSink","","Types which can receive tokens from the tokenizer.",null,null],[10,"process_token","","Process a token.",8,null],[11,"query_state_change","","The tokenizer will call this after emitting any start tag.\nThis allows the tree builder to change the tokenizer's state.\nBy default no state changes occur.",8,null],[11,"clone","","",5,null],[11,"default","","",5,{"inputs":[],"output":{"name":"xmltokenizeropts"}}],[11,"new","","Create a new tokenizer which feeds tokens to a particular `TokenSink`.",9,{"inputs":[{"name":"sink"},{"name":"xmltokenizeropts"}],"output":{"name":"xmltokenizer"}}],[11,"unwrap","","Returns destination of token events.",9,null],[11,"sink","","Immutably borrows destination of token events.",9,null],[11,"sink_mut","","Mutably borrows destinantion of token events.",9,null],[11,"feed","","Feed an input string into the tokenizer.",9,null],[11,"run","","Run the state machine for as long as we can.",9,null],[11,"end","","Indicate that we have reached the end of the input.",9,null],[0,"tree_builder","xml5ever","XML5 tree builder - converts tokens into a tree like structure",null,null],[3,"XmlTreeBuilder","xml5ever::tree_builder","The XML tree builder.",null,null],[0,"interface","","The interface for consumers of the tree builder (and thus the\nparser overall).",null,null],[4,"NodeOrText","xml5ever::tree_builder::interface","Something which can be inserted into the DOM.",null,null],[13,"AppendNode","","Appends next element like it is a node",10,null],[13,"AppendText","","Appends next element as if it was a text element",10,null],[4,"NextParserState","","Whether to interrupt further parsing of the current input until\nthe next explicit resumption of the tokenizer, or continue without\nany interruption.",null,null],[13,"Suspend","","Stop further parsing.",11,null],[13,"Continue","","Continue without interruptions.",11,null],[8,"TreeSink","","Types which can process tree modifications from the tree builder.",null,null],[16,"Handle","","`Handle` is a reference to a DOM node. The tree builder requires\nthat a `Handle` implements `Clone` to get another reference to\nthe same node.",12,null],[10,"parse_error","","Signal a parse error.",12,null],[10,"get_document","","Get a handle to the `Document` node.",12,null],[10,"elem_name","","What is the name of this element?",12,null],[10,"create_element","","Create an element.",12,null],[10,"create_comment","","Create a comment node.",12,null],[10,"create_pi","","Create a Processing Instruction node.",12,null],[10,"append","","Append a node as the last child of the given node. If this would\nproduce adjacent sibling text nodes, it should concatenate the text\ninstead.",12,null],[10,"append_doctype_to_document","","Append a `DOCTYPE` element to the `Document` node.",12,null],[11,"mark_script_already_started","","Mark a HTML `<script>` as "already started".",12,null],[11,"complete_script","","Indicate that a `script` element is complete.",12,null],[8,"Tracer","","Trace hooks for a garbage-collected DOM.",null,null],[16,"Handle","","Reference to a generic DOM node.",13,null],[10,"trace_handle","","Upon a call to `trace_handles`, the tree builder will call this method\nfor each handle in its internal state.",13,null],[11,"fmt","","",11,null],[11,"hash","","",11,null],[11,"clone","","",11,null],[11,"eq","","",11,null],[11,"new","xml5ever::tree_builder","Create a new tree builder which sends tree modifications to a particular `TreeSink`.",14,{"inputs":[{"name":"sink"}],"output":{"name":"xmltreebuilder"}}],[11,"unwrap","","Returns consumer of tree modifications.",14,null],[11,"sink","","Immutably borrows consumer of tree modifications.",14,null],[11,"sink_mut","","Mutably borrows consumer of tree modifications.",14,null],[11,"trace_handles","","Call the `Tracer`'s `trace_handle` method on every `Handle` in the tree builder's\ninternal state. This is intended to support garbage-collected DOMs.",14,null],[11,"process_token","","",14,null],[11,"query_state_change","","",14,null],[0,"rcdom","xml5ever","A simple reference-counted that serves as a default tree structure\nA simple reference-counted DOM.",null,null],[3,"Node","xml5ever::rcdom","A simple DOM node.",null,null],[12,"node","","Represents this node's data.",15,null],[12,"parent","","Parent node.",15,null],[12,"children","","Child nodes of this node.",15,null],[3,"Handle","","Reference to a DOM node.",null,null],[3,"RcDom","","The DOM itself; the result of parsing.",null,null],[12,"document","","The `Document` itself.",16,null],[12,"errors","","Errors that occurred during parsing.",16,null],[4,"NodeEnum","","The different kinds of nodes in the DOM.",null,null],[13,"Document","","The `Document` itself.",17,null],[13,"Doctype","","A `DOCTYPE` with name, public id, and system id.",17,null],[13,"Text","","A text node.",17,null],[13,"Comment","","A comment.",17,null],[13,"Element","","An element with attributes.",17,null],[13,"PI","","A Processing instruction.",17,null],[6,"WeakHandle","","Weak reference to a DOM node, used for parent pointers.",null,null],[11,"fmt","","",17,null],[11,"clone","","",18,null],[11,"deref","","",18,null],[11,"parse_error","","",16,null],[11,"get_document","","",16,null],[11,"elem_name","","",16,null],[11,"create_element","","",16,null],[11,"create_comment","","",16,null],[11,"create_pi","","",16,null],[11,"append","","",16,null],[11,"append_doctype_to_document","","",16,null],[11,"default","","",16,{"inputs":[],"output":{"name":"rcdom"}}],[11,"get_result","","",16,{"inputs":[{"name":"rcdom"}],"output":{"name":"rcdom"}}],[8,"ParseResult","xml5ever","Results which can be extracted from a `TreeSink`.",null,null],[16,"Sink","","Type of consumer of tree modifications.\nIt also extends `Default` for convenience.",19,null],[10,"get_result","","Returns parsed tree data type",19,{"inputs":[{"name":"sink"}],"output":{"name":"self"}}],[11,"query_state_change","xml5ever::tokenizer","The tokenizer will call this after emitting any start tag.\nThis allows the tree builder to change the tokenizer's state.\nBy default no state changes occur.",8,null]],"paths":[[3,"Attribute"],[3,"Doctype"],[3,"Pi"],[3,"QName"],[3,"Tag"],[3,"XmlTokenizerOpts"],[4,"TagKind"],[4,"Token"],[8,"TokenSink"],[3,"XmlTokenizer"],[4,"NodeOrText"],[4,"NextParserState"],[8,"TreeSink"],[8,"Tracer"],[3,"XmlTreeBuilder"],[3,"Node"],[3,"RcDom"],[4,"NodeEnum"],[3,"Handle"],[8,"ParseResult"]]}; initSearch(searchIndex);