"use strict";(function(){constitemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];constTY_PRIMITIVE=itemTypes.indexOf("primitive");constTY_KEYWORD=itemTypes.indexOf("keyword");functionprintTab(nb){letiter=0;letfoundCurrentTab=false;letfoundCurrentResultSet=false;onEachLazy(document.getElementById("titles").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}elseif(nb!=0){printTab(0)}}constlevenshtein_row2=[];functionlevenshtein(s1,s2){if(s1===s2){return0}consts1_len=s1.length,s2_len=s2.length;if(s1_len&&s2_len){leti1=0,i2=0,a,b,c,c2;constrow=levenshtein_row2;while(i1<s1_len){row[i1]=++i1}while(i2<s2_len){c2=s2.charCodeAt(i2);a=i2;++i2;b=i2;for(i1=0;i1<s1_len;++i1){c=a+(s1.charCodeAt(i1)!==c2?1:0);a=row[i1];b=b<a?(b<c?b+1:c):(a<c?a+1:c);row[i1]=b}}returnb}returns1_len+s2_len}window.initSearch=rawSearchIndex=>{constMAX_LEV_DISTANCE=3;constMAX_RESULTS=200;constGENERICS_DATA=2;constNAME=0;constINPUTS_DATA=0;constOUTPUT_DATA=1;constNO_TYPE_FILTER=-1;letsearchIndex;letcurrentResults;constALIASES=Object.create(null);constparams=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}functionisWhitespace(c){return" \t\n\r".indexOf(c)!==-1}functionisSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}functionisEndCharacter(c){return",>-".indexOf(c)!==-1}functionisStopCharacter(c){returnisWhitespace(c)||isEndCharacter(c)}functionisErrorCharacter(c){return"()".indexOf(c)!==-1}functionitemTypeFromName(typename){for(leti=0,len=itemTypes.length;i<len;++i){if(itemTypes[i]===typename){returni}}thrownewError("Unknown type filter `"+typename+"`")}functiongetStringElem(query,parserState,isInGenerics){if(isInGenerics){thrownewError("`\"` cannot be used in generics")}elseif(query.literalSearch){thrownewError("Cannot have more than one literal search element")}elseif(parserState.totalElems-parserState.genericsElems>0){thrownewError("Cannot use literal search when there is more than one element")}parserState.pos+=1;conststart=parserState.pos;constend=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){thrownewError("Unclosed `\"`")}elseif(parserState.userQuery[end]!=="\""){thrownewError(`Unexpected \`${parserState.userQuery[end]}\` in a string element`)}elseif(start===end){thrownewError("Cannot have empty string element")}parserState.pos+=1;query.literalSearch=true}functionisPathStart(parserState){returnparserState.userQuery.slice(parserState.pos,parserState.pos+2)=="::"}functionisReturnArrow(parserState){returnparserState.userQuery.slice(parserState.pos,parserState.pos+2)=="->"}functionisIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}functionisSeparatorCharacter(c){returnc===","||isWhitespaceCharacter(c)}functionisWhitespaceCharacter(c){returnc===" "||c==="\t"}functioncreateQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){thrownewError("You cannot have more than one element if you use quotes")}constpathSegments=name.split("::");if(pathSegments.length>1){for(leti=0,len=pathSegments.length;i<len;++i){constpathSegment=pathSegments[i];if(pathSegment.length===0){if(i===0){thrownewError("Paths cannot start with `::`")}elseif(i+1===len){thrownewError("Paths cannot end with `::`")}thrownewError("Unexpected `::::`")}}}if(pathSegments.length===0||(pathSegments.length===1&&path