var searchIndex = {}; searchIndex["markov"] = {"doc":"A generic [Markov chain](https://en.wikipedia.org/wiki/Markov_chain) for almost any type. This\nuses HashMaps internally, and so Eq and Hash are both required.","items":[[3,"Chain","markov","A generic [Markov chain](https://en.wikipedia.org/wiki/Markov_chain) for almost any type. This\nuses HashMaps internally, and so Eq and Hash are both required.",null,null],[3,"SizedChainIterator","","A sized iterator over a Markov chain.",null,null],[3,"InfiniteChainIterator","","An infinite iterator over a Markov chain.",null,null],[6,"SizedChainStringIterator","","A sized iterator over a Markov chain of strings.",null,null],[6,"InfiniteChainStringIterator","","An infinite iterator over a Markov chain of strings.",null,null],[8,"Chainable","","The definition of all types that can be used in a Chain.",null,null],[11,"fmt","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"decode","","",0,{"inputs":[{"name":"__dt"}],"output":{"name":"result"}}],[11,"encode","","",0,null],[11,"new","","Constructs a new Markov chain using the given tokens as the marked starting and ending\npoints for generation.",0,{"inputs":[{"name":"t"},{"name":"t"}],"output":{"name":"chain"}}],[11,"is_empty","","Determines whether or not the chain is empty. A chain is considered empty if nothing has\nbeen fed into it.",0,null],[11,"feed","","Feeds the chain a collection of tokens. This operation is O(n) where n is the number of\ntokens to be fed into the chain.",0,null],[11,"generate","","Generates a collection of tokens from the chain. This operation is O(mn) where m is the\nlength of the generated collection, and n is the number of possible states from a given\nstate.",0,null],[11,"generate_from_token","","Generates a collection of tokens from the chain, starting with the given token. This\noperation is O(mn) where m is the length of the generated collection, and n is the number\nof possible states from a given state. This returns an empty vector if the token is not\nfound.",0,null],[11,"iter","","Produces an infinite iterator of generated token collections.",0,null],[11,"iter_for","","Produces an iterator for the specified number of generated token collections.",0,null],[11,"load","","Loads a chain from a JSON file at the specified path.",0,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[11,"load_utf8","","Loads a chain from a JSON file using a string path.",0,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"save","","Saves a chain to a JSON file at the specified path.",0,null],[11,"save_utf8","","Saves a chain to a JSON file using a string path.",0,null],[11,"for_strings","","Creates a new Chain intended specifically for strings. This uses the Unicode start of text\nand end of text control characters as the starting and ending tokens for the chain.",0,{"inputs":[],"output":{"name":"chain"}}],[11,"feed_str","","Feeds a string of text into the chain.",0,null],[11,"feed_file","","Feeds a properly formatted file into the chain. This file should be formatted such that\neach line is a new sentence. Punctuation may be included if it is desired.",0,null],[11,"generate_str","","Generates a random string of text.",0,null],[11,"generate_str_from_token","","Generates a random string of text starting with the desired token. This returns an empty\nstring if the token is not found.",0,null],[11,"str_iter","","Produces an infinite iterator of generated strings.",0,null],[11,"str_iter_for","","Produces a sized iterator of generated strings.",0,null],[11,"next","","",1,null],[11,"size_hint","","",1,null],[11,"next","","",2,null]],"paths":[[3,"Chain"],[3,"SizedChainIterator"],[3,"InfiniteChainIterator"]]}; initSearch(searchIndex);