var searchIndex = {}; searchIndex["hamlet"] = {"doc":"Provides token definitions for HTML stream processing. The goal of this library is to provide a simple API over which higher abstraction can be built on.","items":[[4,"Token","hamlet","An HTML token, these are representations of everything needed to generate an HTML document.",null,null],[13,"StartTag","","A start tag token.",0,null],[12,"name","hamlet::Token","The element's tag name.",0,null],[12,"attrs","","Any attributes for the start tag.",0,null],[12,"self_closing","","Marker indicating the tag should be self-closing, such as `
` (although `br` is a void element so this has no effect on it).",0,null],[13,"EndTag","hamlet","An end tag token.",0,null],[12,"name","hamlet::Token","The element's tag name.",0,null],[13,"Text","hamlet","The text contained will be escaped on `Display`.",0,null],[13,"RawText","","The text contained will be `Display`ed as-is.",0,null],[13,"Comment","","Comments contained within ``. No validation is done to ensure that the text conforms to the html comment syntax.",0,null],[13,"DOCTYPE","","The HTML5 DOCTYPE declaration (``)",0,null],[0,"util","","Currently contains just a semi-private utility function to support the `attrs!` macro.",null,null],[5,"identifier_to_tag_name","hamlet::util","Internally used by the macro to hyphenate camel-cased attribute names.",null,{"inputs":[{"name":"t"}],"output":{"name":"cow"}}],[0,"attr","hamlet","Contains structs for defining attributes on elements.",null,null],[3,"Attribute","hamlet::attr","An HTML attribute.",null,null],[12,"name","","The [attribute's name][name]. The value of this field will not be validated, you must ensure it meets the requirements specified in the spec yourself.",1,null],[12,"value","","The [attribute's value][value]. This field will be escaped automatically, if it is an empty string then the attribute will be written with the 'Empty attribute syntax'.",1,null],[3,"AttributeList","","A list of `Attribute`s.",null,null],[3,"Iter","","Immutable `AttributeList` iterator.",null,null],[11,"clone","","",1,{"inputs":[{"name":"self"}],"output":{"name":"attribute"}}],[11,"fmt","","",1,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"ne","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"option"}}],[11,"lt","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"le","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"gt","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"ge","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"bool"}}],[11,"cmp","","",1,{"inputs":[{"name":"self"},{"name":"attribute"}],"output":{"name":"ordering"}}],[11,"new","","Create an attribute, useful to avoid having to convert strings to `Cow` yourself.",1,{"inputs":[{"name":"n"},{"name":"v"}],"output":{"name":"attribute"}}],[11,"fmt","","",1,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"clone","","",2,{"inputs":[{"name":"self"}],"output":{"name":"attributelist"}}],[11,"fmt","","",2,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"empty","","Return an empty `AttributeList`",2,{"inputs":[],"output":{"name":"attributelist"}}],[11,"from_vec","","Note that this does not check for duplicate attribute names. Generally, end users are not expected to call this method, and instead use high-level builder APIs or macros available to make construction easier, such as the provided `attrs!` macro.",2,{"inputs":[{"name":"vec"}],"output":{"name":"attributelist"}}],[11,"into_vec","","Pull all attributes out of this collection, useful if you need to perform some more extensive modification.",2,{"inputs":[{"name":"self"}],"output":{"name":"vec"}}],[11,"get","","Try and get the value of an attribute.",2,{"inputs":[{"name":"self"},{"name":"s"}],"output":{"name":"option"}}],[11,"set","","Unconditionally set an attribute to a value. If the attribute already exists in the list, update its value, otherwise add a new attribute to the list.",2,{"inputs":[{"name":"self"},{"name":"n"},{"name":"v"}],"output":null}],[11,"remove","","Removes and returns the attribute if there was one.",2,{"inputs":[{"name":"self"},{"name":"s"}],"output":{"name":"option"}}],[11,"iter","","Returns an iterator over the list.",2,{"inputs":[{"name":"self"}],"output":{"name":"iter"}}],[11,"next","","",3,{"inputs":[{"name":"self"}],"output":{"name":"option"}}],[11,"eq","","",2,{"inputs":[{"name":"self"},{"name":"attributelist"}],"output":{"name":"bool"}}],[11,"clone","hamlet","",0,{"inputs":[{"name":"self"}],"output":{"name":"token"}}],[11,"fmt","","",0,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",0,{"inputs":[{"name":"self"},{"name":"token"}],"output":{"name":"bool"}}],[11,"ne","","",0,{"inputs":[{"name":"self"},{"name":"token"}],"output":{"name":"bool"}}],[11,"start_tag","","Create a `StartTag` token with specified element name and attributes, use `closed()` to set the `self_closing` flag.",0,{"inputs":[{"name":"s"},{"name":"attributelist"}],"output":{"name":"token"}}],[11,"end_tag","","Create an `EndTag` token with specified element name.",0,{"inputs":[{"name":"s"}],"output":{"name":"token"}}],[11,"text","","Create a `Text` token with specified text content.",0,{"inputs":[{"name":"s"}],"output":{"name":"token"}}],[11,"raw_text","","Create a `RawText` token with specified raw text content.",0,{"inputs":[{"name":"s"}],"output":{"name":"token"}}],[11,"comment","","Create a `Comment` token with specified comment content.",0,{"inputs":[{"name":"s"}],"output":{"name":"token"}}],[11,"closed","","If `self` is a `StartTag`, returns a copy with `self_closing` set to `true`; otherwise, returns `self`.",0,{"inputs":[{"name":"self"}],"output":{"name":"token"}}],[11,"fmt","","",0,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[14,"attrs","","A convenience macro for `AttributeList` construction. It does not check for duplicates in attribute names. Attribute names with hyphens should be camel-cased.",null,null]],"paths":[[4,"Token"],[3,"Attribute"],[3,"AttributeList"],[3,"Iter"]]}; initSearch(searchIndex);