diff --git a/help.html b/help.html index 36e807f8..f88ba077 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
1 +basic.rs - source 1 2 3 4 diff --git a/src/twitch_types/collection.rs.html b/src/twitch_types/collection.rs.html index 6b6d99a1..ab9cb3fe 100644 --- a/src/twitch_types/collection.rs.html +++ b/src/twitch_types/collection.rs.html @@ -1,4 +1,4 @@ -collection.rs - source 1 +collection.rs - source 1 2 3 4 diff --git a/src/twitch_types/color.rs.html b/src/twitch_types/color.rs.html index 646714d5..72282c22 100644 --- a/src/twitch_types/color.rs.html +++ b/src/twitch_types/color.rs.html @@ -1,4 +1,4 @@ -color.rs - source 1 +color.rs - source 1 2 3 4 diff --git a/src/twitch_types/emote.rs.html b/src/twitch_types/emote.rs.html index c07f1882..b3f43cc0 100644 --- a/src/twitch_types/emote.rs.html +++ b/src/twitch_types/emote.rs.html @@ -1,4 +1,4 @@ -emote.rs - source 1 +emote.rs - source 1 2 3 4 diff --git a/src/twitch_types/eventsub.rs.html b/src/twitch_types/eventsub.rs.html index 9014c723..a8401b2f 100644 --- a/src/twitch_types/eventsub.rs.html +++ b/src/twitch_types/eventsub.rs.html @@ -1,4 +1,4 @@ -eventsub.rs - source 1 +eventsub.rs - source 1 2 3 4 diff --git a/src/twitch_types/goal.rs.html b/src/twitch_types/goal.rs.html index 6357e9a5..121150e8 100644 --- a/src/twitch_types/goal.rs.html +++ b/src/twitch_types/goal.rs.html @@ -1,4 +1,4 @@ -goal.rs - source 1 +goal.rs - source 1 2 3 4 diff --git a/src/twitch_types/lib.rs.html b/src/twitch_types/lib.rs.html index d5af695c..d1c3f70e 100644 --- a/src/twitch_types/lib.rs.html +++ b/src/twitch_types/lib.rs.html @@ -1,4 +1,4 @@ -lib.rs - source 1 +lib.rs - source 1 2 3 4 diff --git a/src/twitch_types/macros.rs.html b/src/twitch_types/macros.rs.html index f30b69bc..95d64a80 100644 --- a/src/twitch_types/macros.rs.html +++ b/src/twitch_types/macros.rs.html @@ -1,4 +1,4 @@ -macros.rs - source 1 +macros.rs - source 1 2 3 4 diff --git a/src/twitch_types/moderation.rs.html b/src/twitch_types/moderation.rs.html index ddaac817..405cd0e9 100644 --- a/src/twitch_types/moderation.rs.html +++ b/src/twitch_types/moderation.rs.html @@ -1,4 +1,4 @@ -moderation.rs - source 1 +moderation.rs - source 1 2 3 4 diff --git a/src/twitch_types/points.rs.html b/src/twitch_types/points.rs.html index c53fc82c..02a3a585 100644 --- a/src/twitch_types/points.rs.html +++ b/src/twitch_types/points.rs.html @@ -1,4 +1,4 @@ -points.rs - source 1 +points.rs - source 1 2 3 4 diff --git a/src/twitch_types/stream.rs.html b/src/twitch_types/stream.rs.html index c3ae9226..c777ab4f 100644 --- a/src/twitch_types/stream.rs.html +++ b/src/twitch_types/stream.rs.html @@ -1,4 +1,4 @@ -stream.rs - source 1 +stream.rs - source 1 2 3 4 diff --git a/src/twitch_types/sub.rs.html b/src/twitch_types/sub.rs.html index bca41dc6..279eb162 100644 --- a/src/twitch_types/sub.rs.html +++ b/src/twitch_types/sub.rs.html @@ -1,4 +1,4 @@ -sub.rs - source 1 +sub.rs - source 1 2 3 4 diff --git a/src/twitch_types/time.rs.html b/src/twitch_types/time.rs.html index 05d6d064..4097b690 100644 --- a/src/twitch_types/time.rs.html +++ b/src/twitch_types/time.rs.html @@ -1,4 +1,4 @@ -time.rs - source 1 +time.rs - source 1 2 3 4 diff --git a/src/twitch_types/user.rs.html b/src/twitch_types/user.rs.html index 642b065d..ba251516 100644 --- a/src/twitch_types/user.rs.html +++ b/src/twitch_types/user.rs.html @@ -1,4 +1,4 @@ -user.rs - source 1 +user.rs - source `);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(`}resultName.insertAdjacentHTML("beforeend",`1 2 3 4 diff --git a/static.files/search-0fe7219eb170c82e.js b/static.files/search-d234aafac6c221dd.js similarity index 84% rename from static.files/search-0fe7219eb170c82e.js rename to static.files/search-d234aafac6c221dd.js index da6b6b96..3f587f65 100644 --- a/static.files/search-0fe7219eb170c82e.js +++ b/static.files/search-d234aafac6c221dd.js @@ -2,4 +2,4 @@ ${item.alias} - see \${alias}\ ${item.displayPath}${name}\ -`);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
"+"Try on DuckDuckGo?
"+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in "}let output=`
- The Rust Reference "+" for technical details about the language.
- Rust By "+"Example for expository code examples.
- The Rust Book for "+"introductions to language features and the language itself.
- Docs.rs for documentation of crates released on"+" crates.io.
Results${crates}
`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}
`}else{error[index]=value}});output+=`Query parser error: "${error.join("")}".
`;output+=""+makeTabHeader(0,"In Names",ret_others[1])+"";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+=""+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+""}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+=""+makeTabHeader(0,signatureTabTitle,ret_others[1])+"";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+=""+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.
`}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+=""+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.
`}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>buildItemSearchType(type,lowercasePaths)):EMPTY_GENERICS_ARRAY}const EMPTY_BINDINGS_MAP=new Map();const EMPTY_GENERICS_ARRAY=[];let TYPES_POOL=new Map();function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=EMPTY_GENERICS_ARRAY;bindings=EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}TYPES_POOL.set(result.id,result);return result}function buildFunctionSearchTypeCallback(lowercasePaths){return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:EMPTY_GENERICS_ARRAY,bindings:EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){const cb="}".charCodeAt(0);let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==cb){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){const[ob,la]=["{","`"].map(c=>c.charCodeAt(0));let n=0;let c=this.string.charCodeAt(this.offset);if(c===ob){this.offset+=1;return this.decodeList()}while(c >1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);const[zero,ua,la]=["0","@","`"].map(c=>c.charCodeAt(0));if(c>=zero&&c 16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j =4){offsets=[];for(let j=0;j >3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i =start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i >3]&(1<<(value&7)))}}function buildIndex(rawSearchIndex){searchIndex=[];searchIndexDeprecated=new Map();searchIndexEmptyDesc=new Map();const charA="A".charCodeAt(0);let currentIndex=0;let id=0;for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const itemDescShardDecoder=new VlqHexDecoder(crateCorpus.D,noop=>noop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxs=crateCorpus.i;const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i 2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;for(let i=0;i =descShard.len&&!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}let word="";if(typeof itemNames[i]==="string"){word=itemNames[i].toLowerCase()}const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){buildFunctionTypeFingerprint(t,fp,fps)}}}}const row={crate,ty:itemTypes.charCodeAt(i)-charA,name:itemNames[i],path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdxs[i]>0?paths[itemParentIdxs[i]-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;searchState.descShards.set(crate,descShardList)}TYPES_POOL=new Map()}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom {if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file +
"+"Try on DuckDuckGo?
"+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in "}let output=`
- The Rust Reference "+" for technical details about the language.
- Rust By "+"Example for expository code examples.
- The Rust Book for "+"introductions to language features and the language itself.
- Docs.rs for documentation of crates released on"+" crates.io.
Results${crates}
`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}
`}else{error[index]=value}});output+=`Query parser error: "${error.join("")}".
`;output+=""+makeTabHeader(0,"In Names",ret_others[1])+"";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+=""+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+""}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+=""+makeTabHeader(0,signatureTabTitle,ret_others[1])+"";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+=""+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.
`}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+=""+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.
`}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>buildItemSearchType(type,lowercasePaths)):EMPTY_GENERICS_ARRAY}const EMPTY_BINDINGS_MAP=new Map();const EMPTY_GENERICS_ARRAY=[];let TYPES_POOL=new Map();function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=EMPTY_GENERICS_ARRAY;bindings=EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}TYPES_POOL.set(result.id,result);return result}function buildFunctionSearchTypeCallback(lowercasePaths){return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:EMPTY_GENERICS_ARRAY,bindings:EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j =4){offsets=[];for(let j=0;j >3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i =start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i >3]&(1<<(value&7)))}}function buildIndex(rawSearchIndex){searchIndex=[];searchIndexDeprecated=new Map();searchIndexEmptyDesc=new Map();let currentIndex=0;let id=0;for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const itemDescShardDecoder=new VlqHexDecoder(crateCorpus.D,noop=>noop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxs=crateCorpus.i;const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i 2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;for(let i=0;i =descShard.len&&!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}let word="";if(typeof itemNames[i]==="string"){word=itemNames[i].toLowerCase()}const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){buildFunctionTypeFingerprint(t,fp,fps)}}}}const row={crate,ty:itemTypes.charCodeAt(i)-65,name:itemNames[i],path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdxs[i]>0?paths[itemParentIdxs[i]-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;searchState.descShards.set(crate,descShardList)}TYPES_POOL=new Map()}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom {if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/twitch_types/all.html b/twitch_types/all.html index ac97b1b6..5b8a5c52 100644 --- a/twitch_types/all.html +++ b/twitch_types/all.html @@ -1 +1 @@ - List of all items in this crate \ No newline at end of file + List of all items
Structs
- CollectionIter
- DisplayName
- DisplayNameRef
- MsgId
- MsgIdRef
- Nickname
- NicknameRef
- UserId
- UserIdRef
- color::HexColor
- color::HexColorRef
- emote::BadgeSetId
- emote::BadgeSetIdRef
- emote::ChatBadgeId
- emote::ChatBadgeIdRef
- emote::EmoteId
- emote::EmoteIdRef
- emote::EmoteSetId
- emote::EmoteSetIdRef
- emote::EmoteUrlBuilder
- emote::Image
- emote::ResubscriptionEmote
- eventsub::EventSubId
- eventsub::EventSubIdRef
- goal::CreatorGoalId
- goal::CreatorGoalIdRef
- moderation::BlockedTermId
- moderation::BlockedTermIdRef
- moderation::MsgId
- moderation::MsgIdRef
- points::GlobalCooldown
- points::PollChoice
- points::PollChoiceId
- points::PollChoiceIdRef
- points::PollId
- points::PollIdRef
- points::PredictionId
- points::PredictionIdRef
- points::PredictionOutcome
- points::PredictionOutcomeId
- points::PredictionOutcomeIdRef
- points::PredictionTopPredictors
- points::RedemptionId
- points::RedemptionIdRef
- points::RewardId
- points::RewardIdRef
- stream::CategoryId
- stream::CategoryIdRef
- stream::CharityCampaignId
- stream::CharityCampaignIdRef
- stream::CharityDonationId
- stream::CharityDonationIdRef
- stream::ClipId
- stream::ClipIdRef
- stream::HypeTrainId
- stream::HypeTrainIdRef
- stream::IgdbId
- stream::IgdbIdRef
- stream::StreamId
- stream::StreamIdRef
- stream::StreamSegmentId
- stream::StreamSegmentIdRef
- stream::TagId
- stream::TagIdRef
- stream::TeamId
- stream::TeamIdRef
- stream::TwitchCategory
- stream::VideoId
- stream::VideoIdRef
- sub::CommunityGiftId
- sub::CommunityGiftIdRef
- time::Timestamp
- time::TimestampRef
- user::User
Enums
- BroadcasterType
- Collection
- UserType
- color::NamedUserColor
- emote::EmoteAnimationSetting
- emote::EmoteScale
- emote::EmoteThemeMode
- goal::CreatorGoalType
- moderation::AutomodStatus
- points::Max
- points::PollStatus
- points::PredictionStatus
- stream::CommercialLength
- stream::CommercialLengthParseError
- stream::ContentClassificationId
- stream::SubscriptionTier
- stream::VideoPeriod
- stream::VideoPrivacy
- stream::VideoType
- time::TimestampParseError
Traits
Type Aliases
List of all items in this crate \ No newline at end of file diff --git a/twitch_types/color/enum.NamedUserColor.html b/twitch_types/color/enum.NamedUserColor.html index ee91762b..aaeaf972 100644 --- a/twitch_types/color/enum.NamedUserColor.html +++ b/twitch_types/color/enum.NamedUserColor.html @@ -1,4 +1,4 @@ - List of all items
Structs
- CollectionIter
- DisplayName
- DisplayNameRef
- MsgId
- MsgIdRef
- Nickname
- NicknameRef
- UserId
- UserIdRef
- color::HexColor
- color::HexColorRef
- emote::BadgeSetId
- emote::BadgeSetIdRef
- emote::ChatBadgeId
- emote::ChatBadgeIdRef
- emote::EmoteId
- emote::EmoteIdRef
- emote::EmoteSetId
- emote::EmoteSetIdRef
- emote::EmoteUrlBuilder
- emote::Image
- emote::ResubscriptionEmote
- eventsub::EventSubId
- eventsub::EventSubIdRef
- goal::CreatorGoalId
- goal::CreatorGoalIdRef
- moderation::BlockedTermId
- moderation::BlockedTermIdRef
- moderation::MsgId
- moderation::MsgIdRef
- points::GlobalCooldown
- points::PollChoice
- points::PollChoiceId
- points::PollChoiceIdRef
- points::PollId
- points::PollIdRef
- points::PredictionId
- points::PredictionIdRef
- points::PredictionOutcome
- points::PredictionOutcomeId
- points::PredictionOutcomeIdRef
- points::PredictionTopPredictors
- points::RedemptionId
- points::RedemptionIdRef
- points::RewardId
- points::RewardIdRef
- stream::CategoryId
- stream::CategoryIdRef
- stream::CharityCampaignId
- stream::CharityCampaignIdRef
- stream::CharityDonationId
- stream::CharityDonationIdRef
- stream::ClipId
- stream::ClipIdRef
- stream::HypeTrainId
- stream::HypeTrainIdRef
- stream::IgdbId
- stream::IgdbIdRef
- stream::StreamId
- stream::StreamIdRef
- stream::StreamSegmentId
- stream::StreamSegmentIdRef
- stream::TagId
- stream::TagIdRef
- stream::TeamId
- stream::TeamIdRef
- stream::TwitchCategory
- stream::VideoId
- stream::VideoIdRef
- sub::CommunityGiftId
- sub::CommunityGiftIdRef
- time::Timestamp
- time::TimestampRef
- user::User
Enums
- BroadcasterType
- Collection
- UserType
- color::NamedUserColor
- emote::EmoteAnimationSetting
- emote::EmoteScale
- emote::EmoteThemeMode
- goal::CreatorGoalType
- moderation::AutomodStatus
- points::Max
- points::PollStatus
- points::PredictionStatus
- stream::CommercialLength
- stream::CommercialLengthParseError
- stream::ContentClassificationId
- stream::SubscriptionTier
- stream::VideoPeriod
- stream::VideoPrivacy
- stream::VideoType
- time::TimestampParseError
Traits
Type Aliases
NamedUserColor in twitch_types::color - Rust Enum twitch_types::
source ·color:: NamedUserColor pub enum NamedUserColor<'a> { +
NamedUserColor in twitch_types::color - Rust Enum twitch_types::
source ·color:: NamedUserColor pub enum NamedUserColor<'a> {
Show 16 variants
Blue, BlueViolet, CadetBlue, @@ -37,14 +37,14 @@
source pub fn as_hex(&'a self) -> &'a HexColorRef
Return this color in hex
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for NamedUserColor<'a>
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of anUnstructured
this type needs to construct itself. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given -unstructured data. Read more
source§ impl<'a> Clone for NamedUserColor<'a>
source§ fn clone(&self) -> NamedUserColor<'a>
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl<'a> Debug for NamedUserColor<'a>
source§ impl<'de: 'a, 'a> Deserialize<'de> for NamedUserColor<'a>
source§ fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for NamedUserColor<'_>
source§ impl<'a> From<Cow<'a, HexColorRef>> for NamedUserColor<'a>
source§ fn from(color: Cow<'a, HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<HexColor> for NamedUserColor<'a>
source§ impl<'a> PartialEq for NamedUserColor<'a>
source§ impl<'a> Clone for NamedUserColor<'a>
source§ fn clone(&self) -> NamedUserColor<'a>
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl<'a> Debug for NamedUserColor<'a>
source§ impl<'de: 'a, 'a> Deserialize<'de> for NamedUserColor<'a>
source§ fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for NamedUserColor<'_>
source§ impl<'a> From<Cow<'a, HexColorRef>> for NamedUserColor<'a>
source§ fn from(color: Cow<'a, HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<HexColor> for NamedUserColor<'a>
source§ impl<'a> PartialEq for NamedUserColor<'a>
source§ fn eq(&self, other: &NamedUserColor<'a>) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl Serialize for NamedUserColor<'_>
source§ impl<'a> TryFrom<&'a str> for NamedUserColor<'a>
source§ impl<'zf, 'zf_inner> ZeroFrom<'zf, NamedUserColor<'zf_inner>> for NamedUserColor<'zf>
Available on crate featurezerofrom
only.
source§ fn zero_from(this: &'zf NamedUserColor<'zf_inner>) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl<'a> Eq for NamedUserColor<'a>
source§ impl<'a> StructuralPartialEq for NamedUserColor<'a>
Auto Trait Implementations§
§ impl<'a> Freeze for NamedUserColor<'a>
§ impl<'a> RefUnwindSafe for NamedUserColor<'a>
§ impl<'a> Send for NamedUserColor<'a>
§ impl<'a> Sync for NamedUserColor<'a>
§ impl<'a> Unpin for NamedUserColor<'a>
§ impl<'a> UnwindSafe for NamedUserColor<'a>
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/color/index.html b/twitch_types/color/index.html index 58d3f9ae..8abcae38 100644 --- a/twitch_types/color/index.html +++ b/twitch_types/color/index.html @@ -1,2 +1,2 @@ -twitch_types::color - Rust Module twitch_types::
source ·color Available on crate featurecolor
only.Expand description
types for colors
+twitch_types::color - Rust \ No newline at end of file diff --git a/twitch_types/color/struct.HexColor.html b/twitch_types/color/struct.HexColor.html index 1e3506b5..377c708b 100644 --- a/twitch_types/color/struct.HexColor.html +++ b/twitch_types/color/struct.HexColor.html @@ -1,4 +1,4 @@ - Module twitch_types::
source ·color Available on crate featurecolor
only.Expand description
types for colors
Structs§
A color in hex A color in hexEnums§
Colors a user can haveHexColor in twitch_types::color - Rust Struct twitch_types::
source ·color:: HexColor pub struct HexColor(/* private fields */);
Available on crate featurecolor
only.Expand description
A color in hex
+HexColor in twitch_types::color - Rust Struct twitch_types::
source ·color:: HexColor pub struct HexColor(/* private fields */);
Available on crate featurecolor
only.Expand description
A color in hex
Implementations§
source§ impl HexColor
source pub fn from_static(raw: &'static str) -> Self
Constructs a newHexColorfrom a static reference
source pub fn into_boxed_ref(self) -> Box<HexColorRef>
Converts this
@@ -9,29 +9,29 @@HexColor
into aBox<HexColorRef>
Cow<'_, HexColorRef>
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for HexColor
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<HexColorRef> for HexColor
source§ fn as_ref(&self) -> &HexColorRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl Borrow<HexColorRef> for HexColor
source§ fn borrow(&self) -> &HexColorRef
Immutably borrows from an owned value. Read more
source§ impl<'de> Deserialize<'de> for HexColor
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'a> From<&'a HexColor> for &'a HexColorRef
source§ impl From<&HexColorRef> for HexColor
source§ fn from(s: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<Box<HexColorRef>> for HexColor
source§ fn from(r: Box<HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, HexColorRef>> for HexColor
source§ fn from(r: Cow<'a, HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<HexColor> for NamedUserColor<'a>
source§ impl AsRef<HexColorRef> for HexColor
source§ fn as_ref(&self) -> &HexColorRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl Borrow<HexColorRef> for HexColor
source§ fn borrow(&self) -> &HexColorRef
Immutably borrows from an owned value. Read more
source§ impl<'de> Deserialize<'de> for HexColor
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'a> From<&'a HexColor> for &'a HexColorRef
source§ impl From<&HexColorRef> for HexColor
source§ fn from(s: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<Box<HexColorRef>> for HexColor
source§ fn from(r: Box<HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, HexColorRef>> for HexColor
source§ fn from(r: Cow<'a, HexColorRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<HexColor> for NamedUserColor<'a>
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl Ord for HexColor
source§ impl PartialEq<&HexColor> for HexColor
source§ impl PartialEq<&HexColor> for HexColor
source§ impl PartialEq<&HexColorRef> for HexColor
source§ fn eq(&self, other: &&HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<HexColor> for &HexColorRef
source§ impl PartialEq<HexColor> for HexColorRef
source§ impl PartialEq<HexColor> for HexColorRef
source§ impl PartialEq<HexColorRef> for HexColor
source§ fn eq(&self, other: &HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for HexColor
source§ impl PartialEq for HexColor
source§ impl PartialOrd for HexColor
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl<'zf> ZeroFrom<'zf, HexColor> for &'zf HexColorRef
Available on crate featurezerofrom
only.source§ impl Eq for HexColor
source§ impl StructuralPartialEq for HexColor
Auto Trait Implementations§
§ impl Freeze for HexColor
§ impl RefUnwindSafe for HexColor
§ impl Send for HexColor
§ impl Sync for HexColor
§ impl Unpin for HexColor
§ impl UnwindSafe for HexColor
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/color/struct.HexColorRef.html b/twitch_types/color/struct.HexColorRef.html index 37bd9c64..294cf6d8 100644 --- a/twitch_types/color/struct.HexColorRef.html +++ b/twitch_types/color/struct.HexColorRef.html @@ -1,24 +1,24 @@ -HexColorRef in twitch_types::color - Rust Struct twitch_types::
source ·color:: HexColorRef pub struct HexColorRef(/* private fields */);
Available on crate featurecolor
only.Expand description
A color in hex
+HexColorRef in twitch_types::color - Rust \ No newline at end of file diff --git a/twitch_types/emote/enum.EmoteAnimationSetting.html b/twitch_types/emote/enum.EmoteAnimationSetting.html index d0018ba2..afc0324a 100644 --- a/twitch_types/emote/enum.EmoteAnimationSetting.html +++ b/twitch_types/emote/enum.EmoteAnimationSetting.html @@ -1,4 +1,4 @@ - Struct twitch_types::
source ·color:: HexColorRef pub struct HexColorRef(/* private fields */);
Available on crate featurecolor
only.Expand description
A color in hex
Implementations§
source§ impl HexColorRef
source pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed HexColorRef
source pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed HexColorRef
source pub fn into_owned(self: Box<HexColorRef>) -> HexColor
Converts a
Box<HexColorRef>
into aHexColor
without copying or allocating
source§ impl HexColorRef
source pub fn as_cow(&self) -> Cow<'_, HexColorRef>
Get a
-Cow<'_, HexColorRef>
Trait Implementations§
source§ impl AsRef<HexColorRef> for HexColor
source§ fn as_ref(&self) -> &HexColorRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for HexColorRef
source§ impl Borrow<HexColorRef> for HexColor
source§ fn borrow(&self) -> &HexColorRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for HexColorRef
source§ impl Debug for HexColorRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a HexColorRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<HexColorRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for HexColorRef
source§ impl<'a> From<&'a &'a HexColorRef> for Collection<'a, HexColor>
source§ fn from(v: &'a &'a HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, HexColorRef>> for &'a HexColorRef
source§ fn from(r: &'a Cow<'b, HexColorRef>) -> &'a HexColorRef
Converts to this type from the input type.
source§ impl<'a> From<&'a HexColor> for &'a HexColorRef
source§ impl From<&HexColorRef> for Arc<HexColorRef>
source§ fn from(r: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a HexColorRef> for Cow<'a, HexColorRef>
source§ fn from(r: &'a HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<&HexColorRef> for HexColor
source§ fn from(s: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<&HexColorRef> for Rc<HexColorRef>
source§ fn from(r: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a HexColorRef
source§ impl<'a> From<&'a str> for &'a HexColorRef
source§ fn from(s: &'a str) -> &'a HexColorRef
Converts to this type from the input type.
source§ impl Hash for HexColorRef
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColorRef
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl Ord for HexColorRef
Trait Implementations§
source§ impl AsRef<HexColorRef> for HexColor
source§ fn as_ref(&self) -> &HexColorRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for HexColorRef
source§ impl Borrow<HexColorRef> for HexColor
source§ fn borrow(&self) -> &HexColorRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for HexColorRef
source§ impl Debug for HexColorRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a HexColorRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<HexColorRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for HexColorRef
source§ impl<'a> From<&'a &'a HexColorRef> for Collection<'a, HexColor>
source§ fn from(v: &'a &'a HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, HexColorRef>> for &'a HexColorRef
source§ fn from(r: &'a Cow<'b, HexColorRef>) -> &'a HexColorRef
Converts to this type from the input type.
source§ impl<'a> From<&'a HexColor> for &'a HexColorRef
source§ impl From<&HexColorRef> for Arc<HexColorRef>
source§ fn from(r: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a HexColorRef> for Cow<'a, HexColorRef>
source§ fn from(r: &'a HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<&HexColorRef> for HexColor
source§ fn from(s: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl From<&HexColorRef> for Rc<HexColorRef>
source§ fn from(r: &HexColorRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a HexColorRef
source§ impl<'a> From<&'a str> for &'a HexColorRef
source§ fn from(s: &'a str) -> &'a HexColorRef
Converts to this type from the input type.
source§ impl Hash for HexColorRef
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for &'a HexColorRef
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, HexColorRef> for HexColor
source§ fn into_cow(self) -> Cow<'a, HexColorRef>
Make the cow with proper ownership, muu
source§ impl Ord for HexColorRef
source§ impl PartialEq<&HexColorRef> for HexColor
source§ fn eq(&self, other: &&HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq<HexColor> for &HexColorRef
source§ impl PartialEq<HexColor> for HexColorRef
source§ impl PartialEq<HexColor> for HexColorRef
source§ impl PartialEq<HexColorRef> for HexColor
source§ fn eq(&self, other: &HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for HexColorRef
source§ fn eq(&self, other: &HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq for HexColorRef
source§ fn eq(&self, other: &HexColorRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialOrd for HexColorRef
source§ fn partial_cmp(&self, other: &HexColorRef) -> Option<Ordering>
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl Serialize for HexColorRef
Available on crate featureserde
only.
source§ impl ToOwned for HexColorRef
source§ impl<'zf> ZeroFrom<'zf, HexColor> for &'zf HexColorRef
Available on crate featurezerofrom
only.
source§ impl<'zf> ZeroFrom<'zf, HexColorRef> for &'zf HexColorRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf HexColorRef) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for HexColorRef
source§ impl StructuralPartialEq for HexColorRef
Auto Trait Implementations§
§ impl Freeze for HexColorRef
§ impl RefUnwindSafe for HexColorRef
§ impl Send for HexColorRef
§ impl !Sized for HexColorRef
§ impl Sync for HexColorRef
§ impl Unpin for HexColorRef
§ impl UnwindSafe for HexColorRef
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreEmoteAnimationSetting in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteAnimationSetting pub enum EmoteAnimationSetting { +
EmoteAnimationSetting in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteAnimationSetting pub enum EmoteAnimationSetting { Static, Animated, }
Available on crate featureemote
only.Expand description
Formats for an emote.
@@ -9,9 +9,9 @@ by==
.
source§ impl Serialize for EmoteAnimationSetting
source§ impl Eq for EmoteAnimationSetting
source§ impl StructuralPartialEq for EmoteAnimationSetting
Auto Trait Implementations§
§ impl Freeze for EmoteAnimationSetting
§ impl RefUnwindSafe for EmoteAnimationSetting
§ impl Send for EmoteAnimationSetting
§ impl Sync for EmoteAnimationSetting
§ impl Unpin for EmoteAnimationSetting
§ impl UnwindSafe for EmoteAnimationSetting
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/enum.EmoteScale.html b/twitch_types/emote/enum.EmoteScale.html index 1063d67b..294aecab 100644 --- a/twitch_types/emote/enum.EmoteScale.html +++ b/twitch_types/emote/enum.EmoteScale.html @@ -1,4 +1,4 @@ -EmoteScale in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteScale pub enum EmoteScale { +
EmoteScale in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteScale pub enum EmoteScale { Size1_0, Size2_0, Size3_0, @@ -6,14 +6,14 @@
Variants§
Trait Implementations§
source§ impl Clone for EmoteScale
source§ fn clone(&self) -> EmoteScale
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for EmoteScale
source§ impl Default for EmoteScale
source§ impl<'de> Deserialize<'de> for EmoteScale
source§ fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for EmoteScale
source§ impl PartialEq for EmoteScale
source§ fn eq(&self, other: &EmoteScale) -> bool
This method tests forself
andother
values to be equal, and is used +Trait Implementations§
source§ impl Clone for EmoteScale
source§ fn clone(&self) -> EmoteScale
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for EmoteScale
source§ impl Default for EmoteScale
source§ impl<'de> Deserialize<'de> for EmoteScale
source§ fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for EmoteScale
source§ impl PartialEq for EmoteScale
source§ fn eq(&self, other: &EmoteScale) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl Serialize for EmoteScale
source§ impl Eq for EmoteScale
source§ impl StructuralPartialEq for EmoteScale
Auto Trait Implementations§
§ impl Freeze for EmoteScale
§ impl RefUnwindSafe for EmoteScale
§ impl Send for EmoteScale
§ impl Sync for EmoteScale
§ impl Unpin for EmoteScale
§ impl UnwindSafe for EmoteScale
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/enum.EmoteThemeMode.html b/twitch_types/emote/enum.EmoteThemeMode.html index 5249ddc4..49625b8e 100644 --- a/twitch_types/emote/enum.EmoteThemeMode.html +++ b/twitch_types/emote/enum.EmoteThemeMode.html @@ -1,4 +1,4 @@ -EmoteThemeMode in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteThemeMode pub enum EmoteThemeMode { +
EmoteThemeMode in twitch_types::emote - Rust Enum twitch_types::
source ·emote:: EmoteThemeMode pub enum EmoteThemeMode { Light, Dark, }
Available on crate featureemote
only.Expand description
Background themes available for an emote.
@@ -9,9 +9,9 @@ by==
.
source§ impl Serialize for EmoteThemeMode
source§ impl Eq for EmoteThemeMode
source§ impl StructuralPartialEq for EmoteThemeMode
Auto Trait Implementations§
§ impl Freeze for EmoteThemeMode
§ impl RefUnwindSafe for EmoteThemeMode
§ impl Send for EmoteThemeMode
§ impl Sync for EmoteThemeMode
§ impl Unpin for EmoteThemeMode
§ impl UnwindSafe for EmoteThemeMode
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/index.html b/twitch_types/emote/index.html index 5e46d5fe..1db1fd70 100644 --- a/twitch_types/emote/index.html +++ b/twitch_types/emote/index.html @@ -1,2 +1,2 @@ -twitch_types::emote - Rust Module twitch_types::
source ·emote Available on crate featureemote
only.Expand description
types for emotes
+twitch_types::emote - Rust \ No newline at end of file diff --git a/twitch_types/emote/struct.BadgeSetId.html b/twitch_types/emote/struct.BadgeSetId.html index 3445d8ee..9dad81d3 100644 --- a/twitch_types/emote/struct.BadgeSetId.html +++ b/twitch_types/emote/struct.BadgeSetId.html @@ -1,4 +1,4 @@ - Module twitch_types::
source ·emote Available on crate featureemote
only.Expand description
types for emotes
Structs§
A Badge set ID A Badge set ID A channel chat badge ID A channel chat badge ID A chat Emote ID A chat Emote ID An Emote Set ID An Emote Set ID Builder for emote URLs. Links to the same image of different sizes An emote index as defined by eventsub, similar to IRCemotes
twitch tag.Enums§
Formats for an emote. Scales available for an emote. Background themes available for an emote.BadgeSetId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: BadgeSetId pub struct BadgeSetId(/* private fields */);
Available on crate featureemote
only.Expand description
A Badge set ID
+BadgeSetId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: BadgeSetId pub struct BadgeSetId(/* private fields */);
Available on crate featureemote
only.Expand description
A Badge set ID
Implementations§
source§ impl BadgeSetId
source pub fn from_static(raw: &'static str) -> Self
Constructs a newBadgeSetIdfrom a static reference
source pub fn into_boxed_ref(self) -> Box<BadgeSetIdRef>
Converts this
@@ -9,29 +9,29 @@BadgeSetId
into aBox<BadgeSetIdRef>
Cow<'_, BadgeSetIdRef>
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for BadgeSetId
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<BadgeSetIdRef> for BadgeSetId
source§ fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for BadgeSetId
source§ impl Borrow<BadgeSetIdRef> for BadgeSetId
source§ fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for BadgeSetId
source§ impl Clone for BadgeSetId
source§ fn clone(&self) -> BadgeSetId
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for BadgeSetId
source§ impl Deref for BadgeSetId
source§ impl<'de> Deserialize<'de> for BadgeSetId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for BadgeSetId
source§ impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
source§ fn from(v: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for BadgeSetId
source§ fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&str> for BadgeSetId
source§ impl From<BadgeSetId> for Box<BadgeSetIdRef>
source§ fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§ fn from(owned: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<BadgeSetId> for String
source§ fn from(s: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<Box<BadgeSetIdRef>> for BadgeSetId
source§ fn from(r: Box<BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
source§ fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<String> for BadgeSetId
source§ impl FromStr for BadgeSetId
source§ impl Hash for BadgeSetId
source§ impl AsRef<BadgeSetIdRef> for BadgeSetId
source§ fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for BadgeSetId
source§ impl Borrow<BadgeSetIdRef> for BadgeSetId
source§ fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for BadgeSetId
source§ impl Clone for BadgeSetId
source§ fn clone(&self) -> BadgeSetId
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for BadgeSetId
source§ impl Deref for BadgeSetId
source§ impl<'de> Deserialize<'de> for BadgeSetId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for BadgeSetId
source§ impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
source§ fn from(v: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for BadgeSetId
source§ fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&str> for BadgeSetId
source§ impl From<BadgeSetId> for Box<BadgeSetIdRef>
source§ fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§ fn from(owned: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<BadgeSetId> for String
source§ fn from(s: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<Box<BadgeSetIdRef>> for BadgeSetId
source§ fn from(r: Box<BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
source§ fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<String> for BadgeSetId
source§ impl FromStr for BadgeSetId
source§ impl Hash for BadgeSetId
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for BadgeSetId
source§ impl PartialEq<&BadgeSetId> for BadgeSetId
source§ fn eq(&self, other: &&BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<&BadgeSetIdRef> for BadgeSetId
source§ impl PartialEq<&BadgeSetId> for BadgeSetId
source§ fn eq(&self, other: &&BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<BadgeSetId> for &BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<&BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &&BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<BadgeSetId> for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<BadgeSetId> for &BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for BadgeSetId
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<BadgeSetId> for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq for BadgeSetId
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialOrd for BadgeSetId
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl Serialize for BadgeSetId
Available on crate featureserde
only.
source§ impl<'zf> ZeroFrom<'zf, BadgeSetId> for &'zf BadgeSetIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf BadgeSetId) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for BadgeSetId
source§ impl StructuralPartialEq for BadgeSetId
Auto Trait Implementations§
§ impl Freeze for BadgeSetId
§ impl RefUnwindSafe for BadgeSetId
§ impl Send for BadgeSetId
§ impl Sync for BadgeSetId
§ impl Unpin for BadgeSetId
§ impl UnwindSafe for BadgeSetId
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/struct.BadgeSetIdRef.html b/twitch_types/emote/struct.BadgeSetIdRef.html index a2779d8a..65abd456 100644 --- a/twitch_types/emote/struct.BadgeSetIdRef.html +++ b/twitch_types/emote/struct.BadgeSetIdRef.html @@ -1,4 +1,4 @@ -BadgeSetIdRef in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: BadgeSetIdRef pub struct BadgeSetIdRef(/* private fields */);
Available on crate featureemote
only.Expand description
\ No newline at end of file diff --git a/twitch_types/emote/struct.ChatBadgeId.html b/twitch_types/emote/struct.ChatBadgeId.html index 3d75bd53..904ae29e 100644 --- a/twitch_types/emote/struct.ChatBadgeId.html +++ b/twitch_types/emote/struct.ChatBadgeId.html @@ -1,4 +1,4 @@ -A Badge set ID
+BadgeSetIdRef in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: BadgeSetIdRef pub struct BadgeSetIdRef(/* private fields */);
Available on crate featureemote
only.Expand description
A Badge set ID
Implementations§
source§ impl BadgeSetIdRef
source pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed BadgeSetIdRef
source pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed BadgeSetIdRef
source pub fn into_owned(self: Box<BadgeSetIdRef>) -> BadgeSetId
Converts a
@@ -7,20 +7,20 @@Box<BadgeSetIdRef>
into aBadgeSetId
without copying or allocatingCow<'_, BadgeSetIdRef>
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for &'a BadgeSetIdRef
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<BadgeSetIdRef> for BadgeSetId
source§ fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for BadgeSetIdRef
source§ impl Borrow<BadgeSetIdRef> for BadgeSetId
source§ fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for BadgeSetIdRef
source§ impl Debug for BadgeSetIdRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a BadgeSetIdRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<BadgeSetIdRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for BadgeSetIdRef
source§ impl<'a> From<&'a &'a BadgeSetIdRef> for Collection<'a, BadgeSetId>
source§ fn from(v: &'a &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for Arc<BadgeSetIdRef>
source§ fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for BadgeSetId
source§ fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetIdRef> for Cow<'a, BadgeSetIdRef>
source§ fn from(r: &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for Rc<BadgeSetIdRef>
source§ fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, BadgeSetIdRef>> for &'a BadgeSetIdRef
source§ fn from(r: &'a Cow<'b, BadgeSetIdRef>) -> &'a BadgeSetIdRef
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a BadgeSetIdRef
source§ impl<'a> From<&'a str> for &'a BadgeSetIdRef
source§ fn from(s: &'a str) -> &'a BadgeSetIdRef
Converts to this type from the input type.
source§ impl From<BadgeSetId> for Box<BadgeSetIdRef>
source§ fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl Hash for BadgeSetIdRef
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetIdRef
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for BadgeSetIdRef
source§ impl PartialEq<&BadgeSetIdRef> for BadgeSetId
source§ impl AsRef<BadgeSetIdRef> for BadgeSetId
source§ fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for BadgeSetIdRef
source§ impl Borrow<BadgeSetIdRef> for BadgeSetId
source§ fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for BadgeSetIdRef
source§ impl Debug for BadgeSetIdRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a BadgeSetIdRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<BadgeSetIdRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for BadgeSetIdRef
source§ impl<'a> From<&'a &'a BadgeSetIdRef> for Collection<'a, BadgeSetId>
source§ fn from(v: &'a &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
source§ fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for Arc<BadgeSetIdRef>
source§ fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for BadgeSetId
source§ fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a BadgeSetIdRef> for Cow<'a, BadgeSetIdRef>
source§ fn from(r: &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&BadgeSetIdRef> for Rc<BadgeSetIdRef>
source§ fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, BadgeSetIdRef>> for &'a BadgeSetIdRef
source§ fn from(r: &'a Cow<'b, BadgeSetIdRef>) -> &'a BadgeSetIdRef
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a BadgeSetIdRef
source§ impl<'a> From<&'a str> for &'a BadgeSetIdRef
source§ fn from(s: &'a str) -> &'a BadgeSetIdRef
Converts to this type from the input type.
source§ impl From<BadgeSetId> for Box<BadgeSetIdRef>
source§ fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
source§ impl Hash for BadgeSetIdRef
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetIdRef
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
source§ fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for BadgeSetIdRef
source§ impl PartialEq<&BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &&BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<BadgeSetId> for &BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<BadgeSetId> for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<BadgeSetId> for &BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<BadgeSetId> for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetId) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq<BadgeSetIdRef> for BadgeSetId
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for BadgeSetIdRef
source§ fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialOrd for BadgeSetIdRef
source§ fn partial_cmp(&self, other: &BadgeSetIdRef) -> Option<Ordering>
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl Serialize for BadgeSetIdRef
Available on crate featureserde
only.
source§ impl ToOwned for BadgeSetIdRef
§ type Owned = BadgeSetId
The resulting type after obtaining ownership.
source§ fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§ fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§ impl<'zf> ZeroFrom<'zf, BadgeSetId> for &'zf BadgeSetIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf BadgeSetId) -> Self
Clone the otherC
into a struct that may retain references intoC
.
source§ impl<'zf> ZeroFrom<'zf, BadgeSetIdRef> for &'zf BadgeSetIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf BadgeSetIdRef) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for BadgeSetIdRef
source§ impl StructuralPartialEq for BadgeSetIdRef
Auto Trait Implementations§
§ impl Freeze for BadgeSetIdRef
§ impl RefUnwindSafe for BadgeSetIdRef
§ impl Send for BadgeSetIdRef
§ impl !Sized for BadgeSetIdRef
§ impl Sync for BadgeSetIdRef
§ impl Unpin for BadgeSetIdRef
§ impl UnwindSafe for BadgeSetIdRef
Blanket Implementations§
source§ impl Serialize for BadgeSetIdRef
Available on crate featureserde
only.
source§ impl ToOwned for BadgeSetIdRef
§ type Owned = BadgeSetId
The resulting type after obtaining ownership.
source§ fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§ fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§ impl<'zf> ZeroFrom<'zf, BadgeSetId> for &'zf BadgeSetIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf BadgeSetId) -> Self
Clone the otherC
into a struct that may retain references intoC
.
source§ impl<'zf> ZeroFrom<'zf, BadgeSetIdRef> for &'zf BadgeSetIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf BadgeSetIdRef) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for BadgeSetIdRef
source§ impl StructuralPartialEq for BadgeSetIdRef
Auto Trait Implementations§
§ impl Freeze for BadgeSetIdRef
§ impl RefUnwindSafe for BadgeSetIdRef
§ impl Send for BadgeSetIdRef
§ impl !Sized for BadgeSetIdRef
§ impl Sync for BadgeSetIdRef
§ impl Unpin for BadgeSetIdRef
§ impl UnwindSafe for BadgeSetIdRef
Blanket Implementations§
ChatBadgeId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: ChatBadgeId pub struct ChatBadgeId(/* private fields */);
Available on crate featureemote
only.Expand description
A channel chat badge ID
+ChatBadgeId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: ChatBadgeId pub struct ChatBadgeId(/* private fields */);
Available on crate featureemote
only.Expand description
A channel chat badge ID
Implementations§
source§ impl ChatBadgeId
source pub fn from_static(raw: &'static str) -> Self
Constructs a newChatBadgeIdfrom a static reference
source pub fn into_boxed_ref(self) -> Box<ChatBadgeIdRef>
Converts this
@@ -9,29 +9,29 @@ChatBadgeId
into aBox<ChatBadgeIdRef>
Cow<'_, ChatBadgeIdRef>
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for ChatBadgeId
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<ChatBadgeIdRef> for ChatBadgeId
source§ fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for ChatBadgeId
source§ impl Borrow<ChatBadgeIdRef> for ChatBadgeId
source§ fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for ChatBadgeId
source§ impl Clone for ChatBadgeId
source§ fn clone(&self) -> ChatBadgeId
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for ChatBadgeId
source§ impl Deref for ChatBadgeId
source§ impl<'de> Deserialize<'de> for ChatBadgeId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for ChatBadgeId
source§ impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
source§ fn from(v: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for ChatBadgeId
source§ fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&str> for ChatBadgeId
source§ impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
source§ fn from(r: Box<ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
source§ fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
source§ fn from(owned: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for String
source§ fn from(s: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
source§ fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<String> for ChatBadgeId
source§ impl FromStr for ChatBadgeId
source§ impl Hash for ChatBadgeId
source§ impl AsRef<ChatBadgeIdRef> for ChatBadgeId
source§ fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for ChatBadgeId
source§ impl Borrow<ChatBadgeIdRef> for ChatBadgeId
source§ fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for ChatBadgeId
source§ impl Clone for ChatBadgeId
source§ fn clone(&self) -> ChatBadgeId
Returns a copy of the value. Read more
1.0.0 · source§ fn clone_from(&mut self, source: &Self)
Performs copy-assignment fromsource
. Read more
source§ impl Debug for ChatBadgeId
source§ impl Deref for ChatBadgeId
source§ impl<'de> Deserialize<'de> for ChatBadgeId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for ChatBadgeId
source§ impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
source§ fn from(v: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for ChatBadgeId
source§ fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&str> for ChatBadgeId
source§ impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
source§ fn from(r: Box<ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
source§ fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
source§ fn from(owned: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for String
source§ fn from(s: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
source§ fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
source§ impl From<String> for ChatBadgeId
source§ impl FromStr for ChatBadgeId
source§ impl Hash for ChatBadgeId
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for ChatBadgeId
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for ChatBadgeId
source§ impl PartialEq<&ChatBadgeId> for ChatBadgeId
source§ fn eq(&self, other: &&ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &&ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
source§ impl PartialEq<&ChatBadgeId> for ChatBadgeId
source§ fn eq(&self, other: &&ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &&ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialOrd for ChatBadgeId
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl Serialize for ChatBadgeId
Available on crate featureserde
only.
source§ impl<'zf> ZeroFrom<'zf, ChatBadgeId> for &'zf ChatBadgeIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf ChatBadgeId) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for ChatBadgeId
source§ impl StructuralPartialEq for ChatBadgeId
Auto Trait Implementations§
§ impl Freeze for ChatBadgeId
§ impl RefUnwindSafe for ChatBadgeId
§ impl Send for ChatBadgeId
§ impl Sync for ChatBadgeId
§ impl Unpin for ChatBadgeId
§ impl UnwindSafe for ChatBadgeId
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/struct.ChatBadgeIdRef.html b/twitch_types/emote/struct.ChatBadgeIdRef.html index 796ec4bb..f3d410b5 100644 --- a/twitch_types/emote/struct.ChatBadgeIdRef.html +++ b/twitch_types/emote/struct.ChatBadgeIdRef.html @@ -1,4 +1,4 @@ -ChatBadgeIdRef in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: ChatBadgeIdRef pub struct ChatBadgeIdRef(/* private fields */);
Available on crate featureemote
only.Expand description
\ No newline at end of file diff --git a/twitch_types/emote/struct.EmoteId.html b/twitch_types/emote/struct.EmoteId.html index 9c60ede1..6c5d44fc 100644 --- a/twitch_types/emote/struct.EmoteId.html +++ b/twitch_types/emote/struct.EmoteId.html @@ -1,4 +1,4 @@ -A channel chat badge ID
+ChatBadgeIdRef in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: ChatBadgeIdRef pub struct ChatBadgeIdRef(/* private fields */);
Available on crate featureemote
only.Expand description
A channel chat badge ID
Implementations§
source§ impl ChatBadgeIdRef
source pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ChatBadgeIdRef
source pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed ChatBadgeIdRef
source pub fn into_owned(self: Box<ChatBadgeIdRef>) -> ChatBadgeId
Converts a
@@ -7,20 +7,20 @@Box<ChatBadgeIdRef>
into aChatBadgeId
without copying or allocatingCow<'_, ChatBadgeIdRef>
Trait Implementations§
source§ impl<'a> Arbitrary<'a> for &'a ChatBadgeIdRef
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<ChatBadgeIdRef> for ChatBadgeId
source§ fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for ChatBadgeIdRef
source§ impl Borrow<ChatBadgeIdRef> for ChatBadgeId
source§ fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for ChatBadgeIdRef
source§ impl Debug for ChatBadgeIdRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for ChatBadgeIdRef
source§ impl<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
source§ fn from(v: &'a &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
source§ fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for ChatBadgeId
source§ fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
source§ fn from(r: &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
source§ fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
source§ fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a ChatBadgeIdRef
source§ impl<'a> From<&'a str> for &'a ChatBadgeIdRef
source§ fn from(s: &'a str) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
source§ fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl Hash for ChatBadgeIdRef
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for ChatBadgeIdRef
source§ impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
source§ impl AsRef<ChatBadgeIdRef> for ChatBadgeId
source§ fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl AsRef<str> for ChatBadgeIdRef
source§ impl Borrow<ChatBadgeIdRef> for ChatBadgeId
source§ fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
source§ impl Borrow<str> for ChatBadgeIdRef
source§ impl Debug for ChatBadgeIdRef
source§ impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl Display for ChatBadgeIdRef
source§ impl<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
source§ fn from(v: &'a &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
source§ fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
source§ fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for ChatBadgeId
source§ fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
source§ fn from(r: &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
source§ fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§ impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
source§ fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§ impl<'a> From<&'a String> for &'a ChatBadgeIdRef
source§ impl<'a> From<&'a str> for &'a ChatBadgeIdRef
source§ fn from(s: &'a str) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§ impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
source§ fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
source§ impl Hash for ChatBadgeIdRef
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
source§ fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for ChatBadgeIdRef
source§ impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &&ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq for ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +sufficient, and should not be overridden without very good reason.
source§ impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeId) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialEq for ChatBadgeIdRef
source§ fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests forself
andother
values to be equal, and is used +by==
.
source§ impl PartialOrd for ChatBadgeIdRef
source§ fn partial_cmp(&self, other: &ChatBadgeIdRef) -> Option<Ordering>
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl Serialize for ChatBadgeIdRef
Available on crate featureserde
only.
source§ impl ToOwned for ChatBadgeIdRef
§ type Owned = ChatBadgeId
The resulting type after obtaining ownership.
source§ fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§ fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§ impl<'zf> ZeroFrom<'zf, ChatBadgeId> for &'zf ChatBadgeIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf ChatBadgeId) -> Self
Clone the otherC
into a struct that may retain references intoC
.
source§ impl<'zf> ZeroFrom<'zf, ChatBadgeIdRef> for &'zf ChatBadgeIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf ChatBadgeIdRef) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for ChatBadgeIdRef
source§ impl StructuralPartialEq for ChatBadgeIdRef
Auto Trait Implementations§
§ impl Freeze for ChatBadgeIdRef
§ impl RefUnwindSafe for ChatBadgeIdRef
§ impl Send for ChatBadgeIdRef
§ impl !Sized for ChatBadgeIdRef
§ impl Sync for ChatBadgeIdRef
§ impl Unpin for ChatBadgeIdRef
§ impl UnwindSafe for ChatBadgeIdRef
Blanket Implementations§
source§ impl Serialize for ChatBadgeIdRef
Available on crate featureserde
only.
source§ impl ToOwned for ChatBadgeIdRef
§ type Owned = ChatBadgeId
The resulting type after obtaining ownership.
source§ fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§ fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§ impl<'zf> ZeroFrom<'zf, ChatBadgeId> for &'zf ChatBadgeIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf ChatBadgeId) -> Self
Clone the otherC
into a struct that may retain references intoC
.
source§ impl<'zf> ZeroFrom<'zf, ChatBadgeIdRef> for &'zf ChatBadgeIdRef
Available on crate featurezerofrom
only.
source§ fn zero_from(other: &'zf ChatBadgeIdRef) -> Self
Clone the otherC
into a struct that may retain references intoC
.source§ impl Eq for ChatBadgeIdRef
source§ impl StructuralPartialEq for ChatBadgeIdRef
Auto Trait Implementations§
§ impl Freeze for ChatBadgeIdRef
§ impl RefUnwindSafe for ChatBadgeIdRef
§ impl Send for ChatBadgeIdRef
§ impl !Sized for ChatBadgeIdRef
§ impl Sync for ChatBadgeIdRef
§ impl Unpin for ChatBadgeIdRef
§ impl UnwindSafe for ChatBadgeIdRef
Blanket Implementations§
EmoteId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: EmoteId pub struct EmoteId(/* private fields */);
Available on crate featureemote
only.Expand description
A chat Emote ID
+EmoteId in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: EmoteId pub struct EmoteId(/* private fields */);
Available on crate featureemote
only.Expand description
A chat Emote ID
Implementations§
source§ impl EmoteId
source pub fn from_static(raw: &'static str) -> Self
Constructs a newEmoteIdfrom a static reference
source pub fn into_boxed_ref(self) -> Box<EmoteIdRef>
Converts this
@@ -8,23 +8,23 @@EmoteId
into aBox<EmoteIdRef>
source pub fn as_cow(&self) -> Cow<'_, EmoteIdRef>
Get a
Cow<'_, EmoteIdRef>
source pub fn default_render(&self) -> String
Generates url for this emote.
-Generated URL will be
+"https://static-cdn.jtvnw.net/emoticons/v2/{emote_id}/default/light/1.0"
Generated URL will be
"https://static-cdn.jtvnw.net/emoticons/v2/{emote_id}/default/light/1.0"
source pub fn url(&self) -> EmoteUrlBuilder<'_>
Create a
EmoteUrlBuilder
for this emoteTrait Implementations§
source§ impl<'a> Arbitrary<'a> for EmoteId
Available on crate featurearbitrary
only.
source§ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the given unstructured data. Read more
source§ fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value ofSelf
from the entirety of the given unstructured data. Read more
source§ impl AsRef<EmoteIdRef> for EmoteId
source§ fn as_ref(&self) -> &EmoteIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl Borrow<EmoteIdRef> for EmoteId
source§ fn borrow(&self) -> &EmoteIdRef
Immutably borrows from an owned value. Read more
source§ impl<'de> Deserialize<'de> for EmoteId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
source§ impl From<&EmoteIdRef> for EmoteId
source§ fn from(s: &EmoteIdRef) -> Self
Converts to this type from the input type.
source§ impl From<Box<EmoteIdRef>> for EmoteId
source§ fn from(r: Box<EmoteIdRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, EmoteIdRef>> for EmoteId
source§ fn from(r: Cow<'a, EmoteIdRef>) -> Self
Converts to this type from the input type.
source§ impl AsRef<EmoteIdRef> for EmoteId
source§ fn as_ref(&self) -> &EmoteIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§ impl Borrow<EmoteIdRef> for EmoteId
source§ fn borrow(&self) -> &EmoteIdRef
Immutably borrows from an owned value. Read more
source§ impl<'de> Deserialize<'de> for EmoteId
Available on crate featureserde
only.
source§ fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§ impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
source§ impl From<&EmoteIdRef> for EmoteId
source§ fn from(s: &EmoteIdRef) -> Self
Converts to this type from the input type.
source§ impl From<Box<EmoteIdRef>> for EmoteId
source§ fn from(r: Box<EmoteIdRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> From<Cow<'a, EmoteIdRef>> for EmoteId
source§ fn from(r: Cow<'a, EmoteIdRef>) -> Self
Converts to this type from the input type.
source§ impl<'a> IntoCow<'a, EmoteIdRef> for &'a EmoteId
source§ fn into_cow(self) -> Cow<'a, EmoteIdRef>
Make the cow with proper ownership, muu
source§ impl<'a> IntoCow<'a, EmoteIdRef> for EmoteId
source§ fn into_cow(self) -> Cow<'a, EmoteIdRef>
Make the cow with proper ownership, muu
source§ impl Ord for EmoteId
source§ impl PartialEq<&EmoteId> for EmoteId
source§ impl PartialEq<&EmoteIdRef> for EmoteId
source§ fn eq(&self, other: &&EmoteIdRef) -> bool
This method tests forself
andother
values to be equal, and is used -by==
.
source§ impl PartialEq<EmoteId> for &EmoteIdRef
source§ impl PartialEq<&EmoteId> for EmoteId
source§ impl PartialEq<EmoteId> for EmoteIdRef
source§ impl PartialEq<&EmoteIdRef> for EmoteId
source§ fn eq(&self, other: &&EmoteIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialEq<EmoteId> for &EmoteIdRef
source§ impl PartialEq<EmoteId> for EmoteIdRef
source§ impl PartialEq<EmoteIdRef> for EmoteId
source§ fn eq(&self, other: &EmoteIdRef) -> bool
This method tests forself
andother
values to be equal, and is used by==
.
source§ impl PartialOrd for EmoteId
1.0.0 · source§ fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (forself
andother
) and is used by the<=
operator. Read more
source§ impl<'zf> ZeroFrom<'zf, EmoteId> for &'zf EmoteIdRef
Available on crate featurezerofrom
only.source§ impl Eq for EmoteId
source§ impl StructuralPartialEq for EmoteId
Auto Trait Implementations§
§ impl Freeze for EmoteId
§ impl RefUnwindSafe for EmoteId
§ impl Send for EmoteId
§ impl Sync for EmoteId
§ impl Unpin for EmoteId
§ impl UnwindSafe for EmoteId
Blanket Implementations§
source§ impl<T> BorrowMut<T> for T
where - T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where + T: 'static + ?Sized,
source§ impl<T> BorrowMut<T> for T
where + T: ?Sized,
source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§ impl<T> CloneToUninit for T
where T: Clone,
source§ default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)
source§ impl<T> Instrument for T
source§ fn instrument(self, span: Span) -> Instrumented<Self>
source§ fn in_current_span(self) -> Instrumented<Self>
Instruments this type with the currentSpan
, returning an diff --git a/twitch_types/emote/struct.EmoteIdRef.html b/twitch_types/emote/struct.EmoteIdRef.html index b240170f..0bb59199 100644 --- a/twitch_types/emote/struct.EmoteIdRef.html +++ b/twitch_types/emote/struct.EmoteIdRef.html @@ -1,4 +1,4 @@ -EmoteIdRef in twitch_types::emote - Rust Struct twitch_types::
source ·emote:: EmoteIdRef pub struct EmoteIdRef(/* private fields */);
Available on crate featureemote
only.Expand description
A chat Emote ID
+EmoteIdRef in twitch_types::emote - Rust