var searchIndex = {}; searchIndex["sourcemap"] = {"doc":"This library implements basic processing of JavaScript sourcemaps.","items":[[3,"RawToken","sourcemap","Represents a raw token",null,null],[12,"dst_line","","the destination (minified) line number",0,null],[12,"dst_col","","the destination (minified) column number",0,null],[12,"src_line","","the source line number",0,null],[12,"src_col","","the source line column",0,null],[12,"src_id","","source identifier",0,null],[12,"name_id","","name identifier (`!0` in case there is no associated name)",0,null],[3,"Token","","Represents a token from a sourcemap",null,null],[3,"TokenIter","","Iterates over all tokens in a sourcemap",null,null],[3,"SourceMap","","Represents a sourcemap in memory",null,null],[3,"SourceMapIndex","","Represents a sourcemap index in memory",null,null],[3,"SourceMapSection","","Represents a section in a sourcemap index",null,null],[3,"SourceMapSectionIter","","Iterates over all sections in a sourcemap index",null,null],[4,"Error","","Represents different failure cases.",null,null],[13,"Io","","a std::io error",1,null],[13,"Utf8","","a std::str::Utf8Error",1,null],[13,"BadJson","","a JSON parsing related failure",1,null],[13,"VlqLeftover","","a VLQ string was malformed and data was left over",1,null],[13,"VlqNoValues","","a VLQ string was empty and no values could be decoded.",1,null],[13,"BadSegmentSize","","a mapping segment had an unsupported size",1,null],[13,"BadSourceReference","","a reference to a non existing source was encountered",1,null],[13,"BadNameReference","","a reference to a non existing name was encountered",1,null],[13,"IndexedSourcemap","","Indicates that an indexed sourcemap was encountered when\na regular sourcemap was expected",1,null],[13,"RegularSourcemap","","Indicates that an regular (non-indexed) sourcemap was when\na sourcemap index was expected",1,null],[13,"InvalidDataUrl","","Indicates an invalid data URL",1,null],[4,"DecodedMap","","Represents the result of a decode operation",null,null],[13,"Regular","","Indicates a regular sourcemap",2,null],[13,"Index","","Indicates a sourcemap index",2,null],[4,"SourceMapRef","","Represents a reference to a sourcemap",null,null],[13,"Ref","","A regular URL reference",3,null],[13,"LegacyRef","","A legacy URL reference",3,null],[13,"Missing","","Indicates a missing reference",3,null],[5,"decode","","Decodes a sourcemap or sourcemap index from a reader",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"decode_data_url","","Loads a sourcemap from a data URL.",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"locate_sourcemap_reference","","Locates a sourcemap reference",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"source_location","","If the error originated in a JSON file that can be located, then\nthis method returns that location.",1,null],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"utf8error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"get_dst_line","","get the destination (minified) line number",4,null],[11,"get_dst_col","","get the destination (minified) column number",4,null],[11,"get_dst","","get the destination line and column",4,null],[11,"get_src_line","","get the source line number",4,null],[11,"get_src_col","","get the source column number",4,null],[11,"get_src","","get the source line and column",4,null],[11,"get_source","","get the source if it exists as string",4,null],[11,"get_name","","get the name if it exists as string",4,null],[11,"has_name","","returns `true` if a name exists, `false` otherwise",4,null],[11,"to_tuple","","Converts the token into a debug tuple in the form\n`(source, src_line, src_col, name)`",4,null],[11,"get_raw_token","","Get the underlying raw token",4,null],[11,"next","","",5,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"next","","",6,null],[11,"from_reader","","Creates a sourcemap from a reader over a JSON stream in UTF-8\nformat. Optionally a "garbage header" as defined by the\nsourcemap draft specification is supported. In case an indexed\nsourcemap is encountered an error is returned.",7,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"new","","Constructs a new sourcemap from raw components.",7,{"inputs":[{"name":"u32"},{"name":"option"},{"name":"vec"},{"name":"vec"},{"name":"vec"},{"name":"vec"},{"name":"option"}],"output":{"name":"sourcemap"}}],[11,"get_version","","Returns the version of the sourcemap.",7,null],[11,"get_file","","Returns the embedded filename in case there is one.",7,null],[11,"get_token","","Looks up a token by its index.",7,null],[11,"get_token_count","","Returns the number of tokens in the sourcemap.",7,null],[11,"tokens","","Returns an iterator over the tokens.",7,null],[11,"lookup_token","","Looks up the closest token to a given line and column.",7,null],[11,"get_source_count","","Returns the number of sources in the sourcemap.",7,null],[11,"get_source","","Looks up a source for a specific index.",7,null],[11,"get_source_contents","","Looks up the content for a source.",7,null],[11,"get_name_count","","Returns the number of names in the sourcemap.",7,null],[11,"get_name","","Looks up a name for a specific index.",7,null],[11,"from_reader","","Creates a sourcemap index from a reader over a JSON stream in UTF-8\nformat. Optionally a "garbage header" as defined by the\nsourcemap draft specification is supported. In case a regular\nsourcemap is encountered an error is returned.",8,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"new","","Constructs a new sourcemap index from raw components.",8,{"inputs":[{"name":"u32"},{"name":"option"},{"name":"vec"}],"output":{"name":"sourcemapindex"}}],[11,"get_version","","Returns the version of the sourcemap index.",8,null],[11,"get_file","","Returns the embedded filename in case there is one.",8,null],[11,"get_section_count","","Returns the number of sections in this index",8,null],[11,"get_section","","Looks up a single section and returns it",8,null],[11,"get_section_mut","","Looks up a single section and returns it as a mutable ref",8,null],[11,"sections","","Iterates over all sections",8,null],[11,"lookup_token","","Looks up the closest token to a given line and column.",8,null],[11,"new","","Create a new sourcemap index section",9,null],[11,"get_offset_line","","Returns the offset line",9,null],[11,"get_offset_col","","Returns the offset column",9,null],[11,"get_offset","","Returns the offset as tuple",9,null],[11,"get_url","","Returns the URL of the referenced map if available",9,null],[11,"get_sourcemap","","Returns a reference to the embedded sourcemap if available",9,null],[11,"set_sourcemap","","Replaces the embedded sourcemap",9,null],[11,"lookup_token","","Shortcut to look up a token on either an index or a\nregular sourcemap. This method can only be used if\nthe contained index actually contains embedded maps\nor it will not be able to look up anything.",2,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"get_url","","Return the URL of the reference",3,null],[11,"get_embedded_sourcemap","","Load an embedded sourcemap if there is a data URL.",3,null],[6,"Result","","Represents results from this library.",null,null]],"paths":[[3,"RawToken"],[4,"Error"],[4,"DecodedMap"],[4,"SourceMapRef"],[3,"Token"],[3,"TokenIter"],[3,"SourceMapSectionIter"],[3,"SourceMap"],[3,"SourceMapIndex"],[3,"SourceMapSection"]]}; initSearch(searchIndex);