var searchIndex = {}; searchIndex["read_token"] = {"doc":"A simple library to read tokens using look ahead","items":[[3,"ReadToken","read_token","Stores the state of parsing.",null,null],[3,"NumberSettings","","The settings for reading numbers.",null,null],[12,"allow_underscore","","Whether to allow underscore in number.",0,null],[4,"ParseStringError","","Contains errors when parsing a string.",null,null],[13,"ExpectedFourHexadecimals","","Expected four hexadecimals, found less characters",1,null],[13,"ExpectedHexadecimal","","Expected character `0-9a-fA-F`",1,null],[13,"ExpectedValidUnicode","","Found four hexadecimals, but not an invalid unicode character",1,null],[13,"ExpectedValidEscapeCharacter","","A character escape `\\x` is invalid",1,null],[4,"ParseNumberError","","Error when parsing number.",null,null],[13,"ExpectedDigits","","The number was empty.",2,null],[13,"Invalid","","The number is of invalid format.",2,null],[13,"OverflowInfinity","","The number overflowed to infinity.",2,null],[13,"OverflowNegInfinity","","The number overflowed to negative infinity.",2,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"new","","Creates a new `ReadToken`.\nThe offset is in characters.",3,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"readtoken"}}],[11,"consume","","Consumes n characters.",3,null],[11,"raw_string","","Reads a raw string.",3,null],[11,"lines","","Read lines until closure returns `None`.\nReturns `Ok(range)` of the successful read lines.\nReturns `Err(range)` when expected new line.",3,null],[11,"subtract","","Returns the difference in offset.",3,null],[11,"start","","Returns an empty range at current offset.",3,null],[11,"peek","","Peek a number of characters ahead.",3,null],[11,"tag","","Reads an expected tag, returns character range and new state.\nReturns old state when fail to match tag.",3,null],[11,"until_any_or_whitespace","","Reads a token until any character in string or whitespace.\nReturns `(range, None)` if stopping at whitespace\nor end of characters.\nReturns `(range, Some(x))` if stopping at a character.",3,null],[11,"until_any","","Reads token until any character in string.\nReturns `(new_state, range, None)` if stopping at end of characters.\nReturns `(new_state, range, Some(x))` if stopping at a character.",3,null],[11,"whitespace","","Reads whitespace.",3,null],[11,"string","","Reads string with character escapes.",3,null],[11,"number","","Reads number.",3,null],[11,"parse_string","","Parses string into a real string according to the JSON standard.",3,null],[11,"parse_number","","Parses number from n characters.",3,null],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null]],"paths":[[3,"NumberSettings"],[4,"ParseStringError"],[4,"ParseNumberError"],[3,"ReadToken"]]}; initSearch(searchIndex);