var searchIndex = {}; searchIndex["pest"] = {"doc":"# pest. Smart PEGs in Rust","items":[[3,"StringInput","pest","A `struct` useful for matching in-memory `String`s.",null,null],[11,"new","","Creates a new `StringInput` from a `&str`.",0,{"inputs":[{"name":"str"}],"output":{"name":"stringinput"}}],[11,"len","","",0,null],[11,"pos","","",0,null],[11,"set_pos","","",0,null],[11,"matches","","",0,null],[8,"Input","","A `trait` that defines an input for a `Parser`.",null,null],[10,"len","","Returns length of an `Input`.",1,null],[10,"pos","","Returns current position of an `Input`.",1,null],[10,"set_pos","","Set current position of an `Input`.",1,null],[10,"matches","","Matches `string` to an `Input`, returns whether it matched, and advances the position with\n`string.len()` in case it did.",1,null],[8,"Parser","","A `trait` that defines a parser.",null,null],[10,"matches","","Matches `string`, returns whether it matched, and advances the parser with `string.len()`\nin case it did.",2,null],[10,"try","","Tries to match `rule`, returns whether it matched, and advances the parser with in case it\ndid.",2,null],[10,"end","","Returns whether a `Parser` has reached it end.",2,null],[10,"reset","","Reset a `Parser`.",2,null],[8,"Rdp","","A `trait` that implements a recursive descent parser on a `struct` containing an `Input`.",null,null],[10,"new","","Creates a new `Rdp::Self` instance.",3,{"inputs":[{"name":"box"}],"output":{"name":"self"}}],[10,"input","","Returns `&mut Box<Input>` in order for the parser to have access to its input.",3,null],[11,"matches","","",3,null],[11,"try","","",3,null],[11,"end","","",3,null],[11,"reset","","",3,null],[14,"impl_rdp!","","A `macro` useful for implementing the `Rdp` `trait`.",null,null],[14,"grammar!","","A `macro` that defines each rule as a method on a `Parser`.",null,null],[11,"matches","","",3,null],[11,"try","","",3,null],[11,"end","","",3,null],[11,"reset","","",3,null],[11,"matches","","",3,null],[11,"try","","",3,null],[11,"end","","",3,null],[11,"reset","","",3,null]],"paths":[[3,"StringInput"],[8,"Input"],[8,"Parser"],[8,"Rdp"]]}; initSearch(searchIndex);