var searchIndex = {}; searchIndex["oak_runtime"] = {"doc":"This is the documentation of the Oak runtime. Oak is a parser generator of _Parsing Expression Grammar_, please read first the [manual](http://hyc.io/oak).","items":[[0,"str_stream","oak_runtime","Implementation of `Stream` for `&'a str` type. It implements all traits required by `CharStream`.",null,null],[3,"StrStream","oak_runtime::str_stream","Represents a stream from a `&'a str`. It implements all traits required by `CharStream`.",null,null],[11,"clone","","",0,null],[11,"line_column","","",0,null],[11,"next","","",0,null],[11,"eq","","",0,null],[11,"partial_cmp","","",0,null],[11,"cmp","","",0,null],[11,"location","","",0,null],[11,"code_snippet","","",0,null],[11,"consume_prefix","","",0,null],[11,"has_next","","",0,null],[0,"parse_state","oak_runtime","A parsing state indicates the current status of the parsing. It is mainly used by compiled PEG combinators.",null,null],[3,"ParseExpectation","oak_runtime::parse_state","",null,null],[3,"ParseState","","`ParseState<S, T>` reads value from the stream `S` and build an AST of type `T`.\nError strategy: Even in case of success, we keep error information in case we fail later. Think about parsing "abaa" with `"ab"* "c"`, it will directly fails on `"c"`, so it is better to report an error such as `expected "ab" but got "aa"` since the input partially matches "ab"`.",null,null],[12,"farthest_read","","The farthest read into the stream at which we encountered an error.",1,null],[12,"expected","","Expected items at position `farthest_read`. Duplicate entries are possible.",1,null],[12,"failed","","",1,null],[12,"current","","The current stream that can be partially or fully consumed.",1,null],[12,"data","","Contains the AST if the current state is successful and `None` if it is erroneous.",1,null],[4,"ParseResult","","",null,null],[13,"Success","","",2,null],[13,"Partial","","",2,null],[13,"Failure","","",2,null],[8,"IntoState","","",null,null],[10,"into_state","","",3,null],[11,"new","","",4,{"inputs":[{"name":"s"},{"name":"vec"}],"output":{"name":"parseexpectation"}}],[11,"expected_items","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",2,null],[11,"new","","",1,{"inputs":[{"name":"s"}],"output":{"name":"parsestate"}}],[11,"is_failed","","",1,null],[11,"is_successful","","",1,null],[11,"error","","",1,null],[11,"success","","",1,null],[11,"failure","","",1,null],[11,"mark","","",1,null],[11,"restore_from_failure","","",1,null],[11,"restore","","",1,null],[11,"into_result","","Transforms `self` into a more usable `ParseResult` value. It is useful when the state is terminal or if the state will not be further transformed.",1,null],[11,"extract_data","","",1,null],[11,"unwrap_data","","",1,null],[11,"discard_data","","",1,null],[11,"next","","",1,null],[11,"consume_prefix","","",1,null],[0,"stream","oak_runtime","Collection of traits for retrieving and manipulating a stream. They are used by implementation of parsing expressions.",null,null],[8,"Stream","oak_runtime::stream","Transforms a value into a stream of type `Output`.",null,null],[16,"Output","","",5,null],[10,"stream","","",5,null],[8,"CharStream","","Requirements of a stream of characters. It is currently required by most parser combinators.",null,null],[8,"Location","","Produces a textual representation of the current position in the stream. For example, it can be `2:5` if the position is at line 2 and column 5.",null,null],[10,"location","","",6,null],[8,"CodeSnippet","","Produces a code snippet of size `len_hint` or less starting from the current position in the stream.",null,null],[10,"code_snippet","","",7,null],[8,"ConsumePrefix","","Consumes `prefix` if it fully matches from the current position in the stream. If it does not match, the stream is not altered and `false` is returned.",null,null],[10,"consume_prefix","","",8,null],[8,"HasNext","","Returns `true` if an item can be read from the stream with `Iterator::next`.",null,null],[10,"has_next","","",9,null]],"paths":[[3,"StrStream"],[3,"ParseState"],[4,"ParseResult"],[8,"IntoState"],[3,"ParseExpectation"],[8,"Stream"],[8,"Location"],[8,"CodeSnippet"],[8,"ConsumePrefix"],[8,"HasNext"]]}; initSearch(searchIndex);