diff --git a/ayu.css b/ayu.css index f98b341..336031a 100644 --- a/ayu.css +++ b/ayu.css @@ -1 +1 @@ - :root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}h1,h2,h3,h4{color:white;}h1.fqn a{color:#fff;}h4{border:none;}.in-band{background-color:#0f1419;}.docblock code{color:#ffb454;}.code-header{color:#e6e1cf;}.docblock pre>code,pre>code{color:#e6e1cf;}span code{color:#e6e1cf;}.docblock a>code{color:#39AFD7 !important;}pre,.rustdoc.source .example-wrap{color:#e6e1cf;}.rust-logo{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);}.sidebar .current,.sidebar a:hover{background-color:transparent;color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.line-numbers span{color:#5c6773;}.line-numbers .line-highlighted{color:#708090;background-color:rgba(255,236,164,0.06);padding-right:4px;border-right:1px solid #ffb44c;}.docblock table td,.docblock table th{border-color:#5c6773;}.search-results a:hover{background-color:#777;}.search-results a:focus{color:#000 !important;background-color:#c6afb3;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.content .item-info::before{color:#ccc;}.content span.foreigntype,.content a.foreigntype{color:#ffa0a5;}.content span.union,.content a.union{color:#ffa0a5;}.content span.constant,.content a.constant,.content span.static,.content a.static{color:#39AFD7;}.content span.primitive,.content a.primitive{color:#ffa0a5;}.content span.traitalias,.content a.traitalias{color:#39AFD7;}.content span.keyword,.content a.keyword{color:#39AFD7;}.content span.externcrate,.content span.mod,.content a.mod{color:#39AFD7;}.content span.struct,.content a.struct{color:#ffa0a5;}.content span.enum,.content a.enum{color:#ffa0a5;}.content span.trait,.content a.trait{color:#39AFD7;}.content span.type,.content a.type{color:#39AFD7;}.content span.type,.content a.type,.block a.current.type{color:#39AFD7;}.content span.associatedtype,.content a.associatedtype,.block a.current.associatedtype{color:#39AFD7;}.content span.fn,.content a.fn,.content span.method,.content a.method,.content span.tymethod,.content a.tymethod,.content .fnname{color:#fdd687;}.content span.attr,.content a.attr,.content span.derive,.content a.derive,.content span.macro,.content a.macro{color:#a37acc;}.sidebar a{color:#53b1db;}.sidebar a.current.type{color:#53b1db;}.sidebar a.current.associatedtype{color:#53b1db;}pre.rust .comment{color:#788797;}pre.rust .doccomment{color:#a1ac88;}nav.main .current{border-top-color:#5c6773;border-bottom-color:#5c6773;}nav.main .separator{border:1px solid #5c6773;}a{color:#39AFD7;}.sidebar h2 a,.sidebar h3 a{color:white;}.search-results a{color:#0096cf;}body.source .example-wrap pre.rust a{background:#333;}details.rustdoc-toggle>summary.hideme>span,details.rustdoc-toggle>summary::before{color:#999;}details.rustdoc-toggle>summary::before{filter:invert(100%);}#crate-search,.search-input{background-color:#141920;border-color:#424c57;}#crate-search{border-color:#424c57 !important;}.search-input{color:#ffffff;}.module-item .stab,.import-item .stab{color:#000;}.stab.empty-impl{}.stab.must_implement{}.stab.unstable,.stab.deprecated,.stab.portability,.stab.empty-impl,.stab.must_implement{color:#c5c5c5;background:#314559 !important;border-style:none !important;border-radius:4px;padding:3px 6px 3px 6px;}.stab.portability>code{color:#e6e1cf;background:none;}.rightside,.out-of-band{color:grey;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}.line-numbers :target{background-color:transparent;}pre.rust .number,pre.rust .string{color:#b8cc52;}pre.rust .kw,pre.rust .kw-2,pre.rust .prelude-ty,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .op,pre.rust .lifetime{color:#ff7733;}pre.rust .macro,pre.rust .macro-nonterminal{color:#a37acc;}pre.rust .question-mark{color:#ff9011;}pre.rust .self{color:#36a3d9;font-style:italic;}pre.rust .attribute{color:#e6e1cf;}pre.rust .attribute .ident,pre.rust .attribute .op{color:#e6e1cf;}.example-wrap>pre.line-number{color:#5c67736e;border:none;}a.test-arrow{font-size:100%;color:#788797;border-radius:4px;background-color:rgba(57,175,215,0.09);}a.test-arrow:hover{background-color:rgba(57,175,215,0.368);color:#c5c5c5;}.toggle-label,.code-attribute{color:#999;}:target{background:rgba(255,236,164,0.06);border-right:3px solid rgba(255,180,76,0.85);}pre.compile_fail{border-left:2px solid rgba(255,0,0,.4);}pre.compile_fail:hover,.information:hover+pre.compile_fail{border-left:2px solid #f00;}pre.should_panic{border-left:2px solid rgba(255,0,0,.4);}pre.should_panic:hover,.information:hover+pre.should_panic{border-left:2px solid #f00;}pre.ignore{border-left:2px solid rgba(255,142,0,.6);}pre.ignore:hover,.information:hover+pre.ignore{border-left:2px solid #ff9200;}.tooltip.compile_fail{color:rgba(255,0,0,.5);}.information>.compile_fail:hover{color:#f00;}.tooltip.should_panic{color:rgba(255,0,0,.5);}.information>.should_panic:hover{color:#f00;}.tooltip.ignore{color:rgba(255,142,0,.6);}.information>.ignore:hover{color:#ff9200;}.search-failed a{color:#39AFD7;}.tooltip::after{background-color:#314559;color:#c5c5c5;border:1px solid #5c6773;}.tooltip::before{border-color:transparent #314559 transparent transparent;}.notable-traits-tooltiptext{background-color:#314559;border-color:#5c6773;}.notable-traits-tooltiptext .notable{border-bottom-color:#5c6773;}#titles>button.selected{background-color:#141920 !important;border-bottom:1px solid #ffb44c !important;border-top:none;}#titles>button:not(.selected){background-color:transparent !important;border:none;}#titles>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#titles>button>div.count{color:#888;}.search-input:focus{}.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro{}.content span.struct,.content a.struct,.block a.current.struct{}#titles>button:hover,#titles>button.selected{}.content span.typedef,.content a.typedef,.block a.current.typedef{}.content span.union,.content a.union,.block a.current.union{}pre.rust .lifetime{}.stab.unstable{}h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod){}.content span.enum,.content a.enum,.block a.current.enum{}.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static{}.content span.keyword,.content a.keyword,.block a.current.keyword{}pre.rust .comment{}.content span.traitalias,.content a.traitalias,.block a.current.traitalias{}.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname{}pre.rust .kw{}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident{}.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype{}pre.rust .doccomment{}.stab.deprecated{}.content a.attr,.content a.derive,.content a.macro{}.stab.portability{}.content span.primitive,.content a.primitive,.block a.current.primitive{}.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod{}pre.rust .kw-2,pre.rust .prelude-ty{}.content span.trait,.content a.trait,.block a.current.trait{}.search-results a:focus span{}a.result-trait:focus{}a.result-traitalias:focus{}a.result-mod:focus,a.result-externcrate:focus{}a.result-mod:focus{}a.result-externcrate:focus{}a.result-enum:focus{}a.result-struct:focus{}a.result-union:focus{}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{}a.result-type:focus{}a.result-associatedtype:focus{}a.result-foreigntype:focus{}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{}a.result-constant:focus,a.result-static:focus{}a.result-primitive:focus{}a.result-keyword:focus{}.sidebar a.current.enum{}.sidebar a.current.struct{}.sidebar a.current.foreigntype{}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{}.sidebar a.current.union{}.sidebar a.current.constant .sidebar a.current.static{}.sidebar a.current.primitive{}.sidebar a.current.externcrate .sidebar a.current.mod{}.sidebar a.current.trait{}.sidebar a.current.traitalias{}.sidebar a.current.fn,.sidebar a.current.method,.sidebar a.current.tymethod{}.sidebar a.current.keyword{}@media (max-width:700px){.sidebar-elems{border-right-color:#5c6773;}}kbd{color:#c5c5c5;background-color:#314559;border-color:#5c6773;border-bottom-color:#5c6773;box-shadow:inset 0 -1px 0 #5c6773;}#settings-menu>a,#help-button>button{border-color:#5c6773;background-color:#0f1419;color:#fff;}#settings-menu>a img{filter:invert(100);}.popover,.popover::before,#help-button span.top,#help-button span.bottom{border-color:#5c6773;}#copy-path{color:#fff;}#copy-path>img{filter:invert(70%);}#copy-path:hover>img{filter:invert(100%);}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#e0e0e0;}#theme-choices{border-color:#5c6773;background-color:#0f1419;}#theme-choices>button:not(:first-child){border-top-color:#5c6773;}#theme-choices>button:hover,#theme-choices>button:focus{background-color:rgba(110,110,110,0.33);}.search-results .result-name span.alias{color:#c5c5c5;}.search-results .result-name span.grey{color:#999;}#source-sidebar>.title{color:#fff;border-bottom-color:#5c6773;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#14191f;color:#ffb44c;}#source-sidebar div.files>a.selected{background-color:#14191f;color:#ffb44c;}.scraped-example-list .scrape-help{border-color:#aaa;color:#eee;}.scraped-example-list .scrape-help:hover{border-color:white;color:white;}.more-examples-toggle summary,.more-examples-toggle .hide-more{color:#999;}.scraped-example .example-wrap .rust span.highlight{background:rgb(91,59,1);}.scraped-example .example-wrap .rust span.highlight.focus{background:rgb(124,75,15);}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(15,20,25,1),rgba(15,20,25,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(15,20,25,1),rgba(15,20,25,0));}.toggle-line-inner{background:#999;}.toggle-line:hover .toggle-line-inner{background:#c5c5c5;} \ No newline at end of file + :root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}h1,h2,h3,h4{color:white;}h1.fqn a{color:#fff;}h4{border:none;}.docblock code{color:#ffb454;}.code-header{color:#e6e1cf;}.docblock pre>code,pre>code{color:#e6e1cf;}.item-info code{color:#e6e1cf;}.docblock a>code{color:#39AFD7 !important;}pre,.rustdoc.source .example-wrap{color:#e6e1cf;}.rust-logo{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);}.sidebar .current,.sidebar a:hover{background-color:transparent;color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.line-numbers span{color:#5c6773;}.line-numbers .line-highlighted{color:#708090;background-color:rgba(255,236,164,0.06);padding-right:4px;border-right:1px solid #ffb44c;}.search-results a:hover{color:#fff !important;background-color:#3c3c3c;}.search-results a:focus{color:#fff !important;background-color:#3c3c3c;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.content .item-info::before{color:#ccc;}.sidebar a{color:#53b1db;}.sidebar a.current.type{color:#53b1db;}pre.rust .comment{color:#788797;}pre.rust .doccomment{color:#a1ac88;}.sidebar h2 a,.sidebar h3 a{color:white;}body.source .example-wrap pre.rust a{background:#333;}details.rustdoc-toggle>summary::before{filter:invert(100%);}#crate-search-div::after{filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);}#crate-search:hover,#crate-search:focus{border-color:#e0e0e0 !important;}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);}.search-input{color:#fff;}.module-item .stab,.import-item .stab{color:#000;}.stab{color:#c5c5c5;background:#314559 !important;}.stab.portability>code{color:#e6e1cf;background:none;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}.line-numbers :target{background-color:transparent;}pre.rust .number,pre.rust .string{color:#b8cc52;}pre.rust .kw,pre.rust .kw-2,pre.rust .prelude-ty,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .lifetime{color:#ff7733;}pre.rust .macro,pre.rust .macro-nonterminal{color:#a37acc;}pre.rust .question-mark{color:#ff9011;}pre.rust .self{color:#36a3d9;font-style:italic;}pre.rust .attribute{color:#e6e1cf;}.example-wrap>pre.line-number{color:#5c67736e;border:none;}a.test-arrow{font-size:100%;color:#788797;border-radius:4px;background-color:rgba(57,175,215,0.09);}a.test-arrow:hover{background-color:rgba(57,175,215,0.368);color:#c5c5c5;}:target{background:rgba(255,236,164,0.06);border-right:3px solid rgba(255,180,76,0.85);}.search-failed a{color:#39AFD7;}.tooltip::after{background-color:#314559;color:#c5c5c5;}.tooltip::before{border-color:transparent #314559 transparent transparent;}.notable-traits-tooltiptext{background-color:#314559;}#titles>button.selected{background-color:#141920 !important;border-bottom:1px solid #ffb44c !important;border-top:none;}#titles>button:not(.selected){background-color:transparent !important;border:none;}#titles>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#titles>button>div.count{color:#888;}pre.rust .lifetime{}pre.rust .kw{}#titles>button:hover,#titles>button.selected{}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute{}pre.rust .kw-2,pre.rust .prelude-ty{}.search-results a:focus span{}a.result-trait:focus{}a.result-traitalias:focus{}a.result-mod:focus,a.result-externcrate:focus{}a.result-mod:focus{}a.result-externcrate:focus{}a.result-enum:focus{}a.result-struct:focus{}a.result-union:focus{}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{}a.result-type:focus{}a.result-associatedtype:focus{}a.result-foreigntype:focus{}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{}a.result-constant:focus,a.result-static:focus{}a.result-primitive:focus{}a.result-keyword:focus{}.sidebar a.current.enum{}.sidebar a.current.struct{}.sidebar a.current.foreigntype{}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{}.sidebar a.current.union{}.sidebar a.current.constant .sidebar a.current.static{}.sidebar a.current.primitive{}.sidebar a.current.trait{}.sidebar a.current.traitalias{}.sidebar a.current.fn{}.sidebar a.current.keyword{}kbd{color:#c5c5c5;background-color:#314559;box-shadow:inset 0 -1px 0 #5c6773;}#settings-menu>a,#help-button>button{color:#fff;}#settings-menu>a img{filter:invert(100);}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#e0e0e0;}.search-results .result-name span.alias{color:#c5c5c5;}.search-results .result-name span.grey{color:#999;}#source-sidebar>.title{color:#fff;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#14191f;color:#ffb44c;}#source-sidebar div.files>a.selected{background-color:#14191f;color:#ffb44c;}.scraped-example-list .scrape-help{border-color:#aaa;color:#eee;}.scraped-example-list .scrape-help:hover{border-color:white;color:white;}.scraped-example .example-wrap .rust span.highlight{background:rgb(91,59,1);}.scraped-example .example-wrap .rust span.highlight.focus{background:rgb(124,75,15);}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(15,20,25,1),rgba(15,20,25,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(15,20,25,1),rgba(15,20,25,0));}.toggle-line-inner{background:#999;}.toggle-line:hover .toggle-line-inner{background:#c5c5c5;} \ No newline at end of file diff --git a/dark.css b/dark.css index 242423d..49b9b4f 100644 --- a/dark.css +++ b/dark.css @@ -1 +1 @@ -:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}.in-band{background-color:#353535;}.rust-logo{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff)}.sidebar .current,.sidebar a:hover{background:#444;}.line-numbers span{color:#3B91E2;}.line-numbers .line-highlighted{background-color:#0a042f !important;}.docblock table td,.docblock table th{border-color:#ddd;}.search-results a:hover{background-color:#777;}.search-results a:focus{color:#eee !important;background-color:#616161;}.search-results a:focus span{color:#eee !important;}a.result-trait:focus{background-color:#013191;}a.result-traitalias:focus{background-color:#013191;}a.result-mod:focus,a.result-externcrate:focus{background-color:#884719;}a.result-enum:focus{background-color:#194e9f;}a.result-struct:focus{background-color:#194e9f;}a.result-union:focus{background-color:#194e9f;}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{background-color:#4950ed;}a.result-type:focus{background-color:#194e9f;}a.result-associatedtype:focus{background-color:#884719;}a.result-foreigntype:focus{background-color:#194e9f;}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{background-color:#217d1c;}a.result-constant:focus,a.result-static:focus{background-color:#884719;}a.result-primitive:focus{background-color:#194e9f;}a.result-keyword:focus{background-color:#884719;}.content .item-info::before{color:#ccc;}.content span.enum,.content a.enum,.block a.current.enum{color:#2dbfb8;}.content span.struct,.content a.struct,.block a.current.struct{color:#2dbfb8;}.content span.type,.content a.type,.block a.current.type{color:#2dbfb8;}.content span.associatedtype,.content a.associatedtype,.block a.current.associatedtype{color:#D2991D;}.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype{color:#2dbfb8;}.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro{color:#09bd00;}.content span.union,.content a.union,.block a.current.union{color:#2dbfb8;}.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static{color:#D2991D;}.content span.primitive,.content a.primitive,.block a.current.primitive{color:#2dbfb8;}.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod{color:#D2991D;}.content span.trait,.content a.trait,.block a.current.trait{color:#b78cf2;}.content span.traitalias,.content a.traitalias,.block a.current.traitalias{color:#b78cf2;}.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname{color:#2BAB63;}.content span.keyword,.content a.keyword,.block a.current.keyword{color:#D2991D;}.sidebar a{color:#fdbf35;}.sidebar a.current.enum{color:#12ece2;}.sidebar a.current.struct{color:#12ece2;}.sidebar a.current.type{color:#12ece2;}.sidebar a.current.associatedtype{color:#fdbf35;}.sidebar a.current.foreigntype{color:#12ece2;}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{color:#0be900;}.sidebar a.current.union{color:#12ece2;}.sidebar a.current.constant .sidebar a.current.static{color:#fdbf35;}.sidebar a.current.primitive{color:#12ece2;}.sidebar a.current.externcrate .sidebar a.current.mod{color:#fdbf35;}.sidebar a.current.trait{color:#cca7ff;}.sidebar a.current.traitalias{color:#cca7ff;}.sidebar a.current.fn,.sidebar a.current.method,.sidebar a.current.tymethod{color:#32d479;}.sidebar a.current.keyword{color:#fdbf35;}pre.rust .comment{color:#8d8d8b;}pre.rust .doccomment{color:#8ca375;}nav.main .current{border-top-color:#eee;border-bottom-color:#eee;}nav.main .separator{border-color:#eee;}a{color:#D2991D;}body.source .example-wrap pre.rust a{background:#333;}details.rustdoc-toggle>summary.hideme>span,details.rustdoc-toggle>summary::before{color:#999;}details.rustdoc-toggle>summary::before{filter:invert(100%);}#crate-search,.search-input{color:#111;background-color:#f0f0f0;border-color:#f0f0f0;}#crate-search{border-color:#f0f0f0 !important;}.search-input{border-color:#e0e0e0;}.search-input:focus{border-color:#008dfd;}.stab.empty-impl{background:#FFF5D6;border-color:#FFC600;color:#2f2f2f;}.stab.unstable{background:#FFF5D6;border-color:#FFC600;color:#2f2f2f;}.stab.deprecated{background:#ffc4c4;border-color:#db7b7b;color:#2f2f2f;}.stab.must_implement{background:#F3DFFF;border-color:#b07bdb;color:#2f2f2f;}.stab.portability{background:#F3DFFF;border-color:#b07bdb;color:#2f2f2f;}.stab.portability>code{background:none;}.rightside,.out-of-band{color:grey;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#ab8ac1;}pre.rust .kw-2,pre.rust .prelude-ty{color:#769acb;}pre.rust .number,pre.rust .string{color:#83a300;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident{color:#ee6868;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#d97f26;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#4a4949;}a.test-arrow{color:#dedede;background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}.toggle-label,.code-attribute{color:#999;}:target{background-color:#494a3d;border-right:3px solid #bb7410;}pre.compile_fail{border-left:2px solid rgba(255,0,0,.8);}pre.compile_fail:hover,.information:hover+pre.compile_fail{border-left:2px solid #f00;}pre.should_panic{border-left:2px solid rgba(255,0,0,.8);}pre.should_panic:hover,.information:hover+pre.should_panic{border-left:2px solid #f00;}pre.ignore{border-left:2px solid rgba(255,142,0,.6);}pre.ignore:hover,.information:hover+pre.ignore{border-left:2px solid #ff9200;}.tooltip.compile_fail{color:rgba(255,0,0,.8);}.information>.compile_fail:hover{color:#f00;}.tooltip.should_panic{color:rgba(255,0,0,.8);}.information>.should_panic:hover{color:#f00;}.tooltip.ignore{color:rgba(255,142,0,.6);}.information>.ignore:hover{color:#ff9200;}.search-failed a{color:#0089ff;}.tooltip::after{background-color:#000;color:#fff;border-color:#000;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#111;border-color:#777;}.notable-traits-tooltiptext .notable{border-bottom-color:#d2d2d2;}#titles>button:not(.selected){background-color:#252525;border-top-color:#252525;}#titles>button:hover,#titles>button.selected{border-top-color:#0089ff;background-color:#353535;}#titles>button>div.count{color:#888;}@media (max-width:700px){.sidebar-elems{border-right-color:#000;}}kbd{color:#000;background-color:#fafbfc;border-color:#d1d5da;border-bottom-color:#c6cbd1;box-shadow:inset 0 -1px 0 #c6cbd1;}#settings-menu>a,#help-button>button{border-color:#e0e0e0;background:#f0f0f0;color:#000;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#ffb900;}.popover,.popover::before,#help-button span.top,#help-button span.bottom{border-color:#d2d2d2;}#copy-path{color:#999;}#copy-path>img{filter:invert(50%);}#copy-path:hover>img{filter:invert(65%);}#theme-choices{border-color:#e0e0e0;background-color:#353535;}#theme-choices>button:not(:first-child){border-top-color:#e0e0e0;}#theme-choices>button:hover,#theme-choices>button:focus{background-color:#4e4e4e;}.search-results .result-name span.alias{color:#fff;}.search-results .result-name span.grey{color:#ccc;}#source-sidebar>.title{border-bottom-color:#ccc;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#444;}#source-sidebar div.files>a.selected{background-color:#333;}.scraped-example-list .scrape-help{border-color:#aaa;color:#eee;}.scraped-example-list .scrape-help:hover{border-color:white;color:white;}.more-examples-toggle summary,.more-examples-toggle .hide-more{color:#999;}.scraped-example .example-wrap .rust span.highlight{background:rgb(91,59,1);}.scraped-example .example-wrap .rust span.highlight.focus{background:rgb(124,75,15);}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(53,53,53,1),rgba(53,53,53,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(53,53,53,1),rgba(53,53,53,0));}.toggle-line-inner{background:#999;}.toggle-line:hover .toggle-line-inner{background:#c5c5c5;} \ No newline at end of file +:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}.rust-logo{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff)}.sidebar .current,.sidebar a:hover{background:#444;}.line-numbers span{color:#3B91E2;}.line-numbers .line-highlighted{background-color:#0a042f !important;}.search-results a:hover{background-color:#777;}.search-results a:focus{color:#eee !important;background-color:#616161;}.search-results a:focus span{color:#eee !important;}a.result-trait:focus{background-color:#013191;}a.result-traitalias:focus{background-color:#013191;}a.result-mod:focus,a.result-externcrate:focus{background-color:#884719;}a.result-enum:focus{background-color:#194e9f;}a.result-struct:focus{background-color:#194e9f;}a.result-union:focus{background-color:#194e9f;}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{background-color:#4950ed;}a.result-type:focus{background-color:#194e9f;}a.result-associatedtype:focus{background-color:#884719;}a.result-foreigntype:focus{background-color:#194e9f;}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{background-color:#217d1c;}a.result-constant:focus,a.result-static:focus{background-color:#884719;}a.result-primitive:focus{background-color:#194e9f;}a.result-keyword:focus{background-color:#884719;}.content .item-info::before{color:#ccc;}.sidebar a{color:#fdbf35;}.sidebar a.current.enum{color:#12ece2;}.sidebar a.current.struct{color:#12ece2;}.sidebar a.current.type{color:#12ece2;}.sidebar a.current.foreigntype{color:#12ece2;}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{color:#0be900;}.sidebar a.current.union{color:#12ece2;}.sidebar a.current.constant .sidebar a.current.static{color:#fdbf35;}.sidebar a.current.primitive{color:#12ece2;}.sidebar a.current.trait{color:#cca7ff;}.sidebar a.current.traitalias{color:#cca7ff;}.sidebar a.current.fn{color:#32d479;}.sidebar a.current.keyword{color:#fdbf35;}pre.rust .comment{color:#8d8d8b;}pre.rust .doccomment{color:#8ca375;}body.source .example-wrap pre.rust a{background:#333;}details.rustdoc-toggle>summary::before{filter:invert(100%);}.search-input{color:#111;}#crate-search-div::after{filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);}#crate-search:hover,#crate-search:focus{border-color:#2196f3 !important;}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);}.stab{background:#314559;}.stab.portability>code{color:#e6e1cf;background:none;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#ab8ac1;}pre.rust .kw-2,pre.rust .prelude-ty{color:#769acb;}pre.rust .number,pre.rust .string{color:#83a300;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute{color:#ee6868;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#d97f26;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#4a4949;}a.test-arrow{color:#dedede;background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}:target{background-color:#494a3d;border-right:3px solid #bb7410;}.search-failed a{color:#0089ff;}.tooltip::after{background-color:#000;color:#fff;border-color:#000;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#111;}#titles>button:not(.selected){background-color:#252525;border-top-color:#252525;}#titles>button:hover,#titles>button.selected{border-top-color:#0089ff;background-color:#353535;}#titles>button>div.count{color:#888;}kbd{color:#000;background-color:#fafbfc;box-shadow:inset 0 -1px 0 #c6cbd1;}#settings-menu>a,#help-button>button{color:#000;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#ffb900;}.search-results .result-name span.alias{color:#fff;}.search-results .result-name span.grey{color:#ccc;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#444;}#source-sidebar div.files>a.selected{background-color:#333;}.scraped-example-list .scrape-help{border-color:#aaa;color:#eee;}.scraped-example-list .scrape-help:hover{border-color:white;color:white;}.scraped-example .example-wrap .rust span.highlight{background:rgb(91,59,1);}.scraped-example .example-wrap .rust span.highlight.focus{background:rgb(124,75,15);}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(53,53,53,1),rgba(53,53,53,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(53,53,53,1),rgba(53,53,53,0));}.toggle-line-inner{background:#999;}.toggle-line:hover .toggle-line-inner{background:#c5c5c5;} \ No newline at end of file diff --git a/down-arrow.svg b/down-arrow.svg index 35437e7..5d76a64 100644 --- a/down-arrow.svg +++ b/down-arrow.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/implementors/actix_web/service/trait.HttpServiceFactory.js b/implementors/actix_web/service/trait.HttpServiceFactory.js index c7a02e6..7d4aebd 100644 --- a/implementors/actix_web/service/trait.HttpServiceFactory.js +++ b/implementors/actix_web/service/trait.HttpServiceFactory.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl HttpServiceFactory for build_details","synthetic":false,"types":["libmedium::meta::build_details"]},{"text":"impl HttpServiceFactory for index","synthetic":false,"types":["libmedium::proxy::index"]},{"text":"impl HttpServiceFactory for assets","synthetic":false,"types":["libmedium::proxy::assets"]},{"text":"impl HttpServiceFactory for by_post_id","synthetic":false,"types":["libmedium::proxy::by_post_id"]},{"text":"impl HttpServiceFactory for page","synthetic":false,"types":["libmedium::proxy::page"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl HttpServiceFactory for build_details"],["impl HttpServiceFactory for index"],["impl HttpServiceFactory for assets"],["impl HttpServiceFactory for by_post_id"],["impl HttpServiceFactory for page"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index 2521d11..df10071 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Clone for Data","synthetic":false,"types":["libmedium::data::Data"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Clone for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Clone for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Clone for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Clone for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Clone for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Clone for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Clone for GistFile","synthetic":false,"types":["libmedium::data::GistFile"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Clone for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Clone for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Clone for PostUrl","synthetic":false,"types":["libmedium::data::PostUrl"]},{"text":"impl Clone for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Clone for Server","synthetic":false,"types":["libmedium::settings::Server"]},{"text":"impl Clone for Settings","synthetic":false,"types":["libmedium::settings::Settings"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Clone for Data"],["impl Clone for ResponseData"],["impl Clone for GetPostPost"],["impl Clone for GetPostPostCreator"],["impl Clone for GetPostPostPreviewImage"],["impl Clone for GetPostPostPreviewContent"],["impl Clone for GetPostPostContent"],["impl Clone for GetPostPostContentBodyModel"],["impl Clone for GetPostPostContentBodyModelParagraphs"],["impl Clone for GetPostPostContentBodyModelParagraphsMarkups"],["impl Clone for GetPostPostContentBodyModelParagraphsIframe"],["impl Clone for GetPostPostContentBodyModelParagraphsIframeMediaResource"],["impl Clone for GetPostPostContentBodyModelParagraphsMetadata"],["impl Clone for GistFile"],["impl Clone for ResponseData"],["impl Clone for GetPostLightPost"],["impl Clone for GetPostLightPostCreator"],["impl Clone for PostUrl"],["impl Clone for BuildDetails"],["impl Clone for Server"],["impl Clone for Settings"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/cmp/trait.Eq.js b/implementors/core/cmp/trait.Eq.js index 5f618ff..5e6bfb2 100644 --- a/implementors/core/cmp/trait.Eq.js +++ b/implementors/core/cmp/trait.Eq.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Eq for PostitionType","synthetic":false,"types":["libmedium::post::PostitionType"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Eq for PostitionType"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/cmp/trait.PartialEq.js b/implementors/core/cmp/trait.PartialEq.js index a959824..f697fe6 100644 --- a/implementors/core/cmp/trait.PartialEq.js +++ b/implementors/core/cmp/trait.PartialEq.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl PartialEq<PostitionType> for PostitionType","synthetic":false,"types":["libmedium::post::PostitionType"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl PartialEq<PostitionType> for PostitionType"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/default/trait.Default.js b/implementors/core/default/trait.Default.js index f778ce4..5e08ddf 100644 --- a/implementors/core/default/trait.Default.js +++ b/implementors/core/default/trait.Default.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl<'a, 'b> Default for PositionMap<'a, 'b>","synthetic":false,"types":["libmedium::post::PositionMap"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl<'a, 'b> Default for PositionMap<'a, 'b>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/fmt/trait.Debug.js b/implementors/core/fmt/trait.Debug.js index b5139dd..5b70e60 100644 --- a/implementors/core/fmt/trait.Debug.js +++ b/implementors/core/fmt/trait.Debug.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Debug for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Debug for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Debug for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Debug for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Debug for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Debug for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Debug for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Debug for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Debug for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Debug for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Debug for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Debug for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Debug for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Debug for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Debug for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Debug for PostUrl","synthetic":false,"types":["libmedium::data::PostUrl"]},{"text":"impl Debug for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Debug for Server","synthetic":false,"types":["libmedium::settings::Server"]},{"text":"impl Debug for Settings","synthetic":false,"types":["libmedium::settings::Settings"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Debug for ResponseData"],["impl Debug for GetPostPost"],["impl Debug for GetPostPostCreator"],["impl Debug for GetPostPostPreviewImage"],["impl Debug for GetPostPostPreviewContent"],["impl Debug for GetPostPostContent"],["impl Debug for GetPostPostContentBodyModel"],["impl Debug for GetPostPostContentBodyModelParagraphs"],["impl Debug for GetPostPostContentBodyModelParagraphsMarkups"],["impl Debug for GetPostPostContentBodyModelParagraphsIframe"],["impl Debug for GetPostPostContentBodyModelParagraphsIframeMediaResource"],["impl Debug for GetPostPostContentBodyModelParagraphsMetadata"],["impl Debug for ResponseData"],["impl Debug for GetPostLightPost"],["impl Debug for GetPostLightPostCreator"],["impl Debug for PostUrl"],["impl Debug for BuildDetails"],["impl Debug for Server"],["impl Debug for Settings"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Freeze.js b/implementors/core/marker/trait.Freeze.js index 1c80cdc..947a1bb 100644 --- a/implementors/core/marker/trait.Freeze.js +++ b/implementors/core/marker/trait.Freeze.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Freeze for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl Freeze for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Freeze for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Freeze for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Freeze for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Freeze for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Freeze for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Freeze for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Freeze for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Freeze for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Freeze for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Freeze for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Freeze for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Freeze for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl Freeze for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Freeze for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Freeze for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Freeze for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl Freeze for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl Freeze for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl Freeze for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl Freeze for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl Freeze for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl Freeze for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl Freeze for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Freeze for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl Freeze for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> Freeze for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> Freeze for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl Freeze for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl Freeze for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl Freeze for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl Freeze for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl Freeze for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl Freeze for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> Freeze for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl Freeze for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl Freeze for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl Freeze for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl Freeze for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Freeze for Variables",1,["libmedium::data::get_post::Variables"]],["impl Freeze for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl Freeze for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl Freeze for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl Freeze for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl Freeze for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl Freeze for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl Freeze for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl Freeze for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl Freeze for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl Freeze for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl Freeze for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl Freeze for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl Freeze for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl Freeze for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl Freeze for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl Freeze for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl Freeze for Data",1,["libmedium::data::Data"]],["impl Freeze for GetPost",1,["libmedium::data::GetPost"]],["impl Freeze for GistContent",1,["libmedium::data::GistContent"]],["impl Freeze for GistFile",1,["libmedium::data::GistFile"]],["impl Freeze for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl Freeze for PostUrl",1,["libmedium::data::PostUrl"]],["impl Freeze for Meta",1,["libmedium::meta::routes::Meta"]],["impl Freeze for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl Freeze for build_details",1,["libmedium::meta::build_details"]],["impl Freeze for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> Freeze for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> Freeze for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl Freeze for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl Freeze for Post",1,["libmedium::proxy::Post"]],["impl Freeze for index",1,["libmedium::proxy::index"]],["impl Freeze for assets",1,["libmedium::proxy::assets"]],["impl Freeze for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl Freeze for page",1,["libmedium::proxy::page"]],["impl<'a> Freeze for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl Freeze for Routes",1,["libmedium::routes::Routes"]],["impl Freeze for Server",1,["libmedium::settings::Server"]],["impl Freeze for Settings",1,["libmedium::settings::Settings"]],["impl Freeze for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Send.js b/implementors/core/marker/trait.Send.js index 7f4002d..f908b11 100644 --- a/implementors/core/marker/trait.Send.js +++ b/implementors/core/marker/trait.Send.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Send for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl Send for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Send for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Send for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Send for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Send for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Send for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Send for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Send for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Send for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Send for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Send for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Send for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Send for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl Send for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Send for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Send for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Send for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl Send for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl Send for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl Send for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl Send for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl Send for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl Send for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl Send for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Send for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl Send for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> Send for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> Send for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl Send for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl Send for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl Send for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl Send for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl Send for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl Send for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> Send for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl Send for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl Send for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl Send for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl Send for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Send for Variables",1,["libmedium::data::get_post::Variables"]],["impl Send for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl Send for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl Send for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl Send for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl Send for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl Send for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl Send for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl Send for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl Send for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl Send for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl Send for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl Send for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl Send for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl Send for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl Send for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl Send for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl Send for Data",1,["libmedium::data::Data"]],["impl Send for GetPost",1,["libmedium::data::GetPost"]],["impl Send for GistContent",1,["libmedium::data::GistContent"]],["impl Send for GistFile",1,["libmedium::data::GistFile"]],["impl Send for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl Send for PostUrl",1,["libmedium::data::PostUrl"]],["impl Send for Meta",1,["libmedium::meta::routes::Meta"]],["impl Send for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl Send for build_details",1,["libmedium::meta::build_details"]],["impl Send for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> Send for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> Send for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl Send for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl Send for Post",1,["libmedium::proxy::Post"]],["impl Send for index",1,["libmedium::proxy::index"]],["impl Send for assets",1,["libmedium::proxy::assets"]],["impl Send for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl Send for page",1,["libmedium::proxy::page"]],["impl<'a> Send for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl Send for Routes",1,["libmedium::routes::Routes"]],["impl Send for Server",1,["libmedium::settings::Server"]],["impl Send for Settings",1,["libmedium::settings::Settings"]],["impl Send for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.StructuralEq.js b/implementors/core/marker/trait.StructuralEq.js index c867dd7..9bc8e30 100644 --- a/implementors/core/marker/trait.StructuralEq.js +++ b/implementors/core/marker/trait.StructuralEq.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl StructuralEq for PostitionType","synthetic":false,"types":["libmedium::post::PostitionType"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl StructuralEq for PostitionType"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.StructuralPartialEq.js b/implementors/core/marker/trait.StructuralPartialEq.js index 54db47b..fffa7f2 100644 --- a/implementors/core/marker/trait.StructuralPartialEq.js +++ b/implementors/core/marker/trait.StructuralPartialEq.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl StructuralPartialEq for PostitionType","synthetic":false,"types":["libmedium::post::PostitionType"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl StructuralPartialEq for PostitionType"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Sync.js b/implementors/core/marker/trait.Sync.js index bee01ed..78a17d4 100644 --- a/implementors/core/marker/trait.Sync.js +++ b/implementors/core/marker/trait.Sync.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Sync for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl Sync for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Sync for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Sync for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Sync for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Sync for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Sync for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Sync for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Sync for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Sync for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Sync for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Sync for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Sync for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Sync for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl Sync for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Sync for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Sync for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Sync for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl Sync for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl Sync for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl Sync for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl Sync for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl Sync for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl Sync for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl Sync for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Sync for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl Sync for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> Sync for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> Sync for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl Sync for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl Sync for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl Sync for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl Sync for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl Sync for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl Sync for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> Sync for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl Sync for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl Sync for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl Sync for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl Sync for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Sync for Variables",1,["libmedium::data::get_post::Variables"]],["impl Sync for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl Sync for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl Sync for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl Sync for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl Sync for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl Sync for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl Sync for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl Sync for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl Sync for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl Sync for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl Sync for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl Sync for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl Sync for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl Sync for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl Sync for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl Sync for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl Sync for Data",1,["libmedium::data::Data"]],["impl Sync for GetPost",1,["libmedium::data::GetPost"]],["impl Sync for GistContent",1,["libmedium::data::GistContent"]],["impl Sync for GistFile",1,["libmedium::data::GistFile"]],["impl Sync for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl Sync for PostUrl",1,["libmedium::data::PostUrl"]],["impl Sync for Meta",1,["libmedium::meta::routes::Meta"]],["impl Sync for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl Sync for build_details",1,["libmedium::meta::build_details"]],["impl Sync for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> Sync for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> Sync for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl Sync for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl Sync for Post",1,["libmedium::proxy::Post"]],["impl Sync for index",1,["libmedium::proxy::index"]],["impl Sync for assets",1,["libmedium::proxy::assets"]],["impl Sync for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl Sync for page",1,["libmedium::proxy::page"]],["impl<'a> Sync for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl Sync for Routes",1,["libmedium::routes::Routes"]],["impl Sync for Server",1,["libmedium::settings::Server"]],["impl Sync for Settings",1,["libmedium::settings::Settings"]],["impl Sync for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Unpin.js b/implementors/core/marker/trait.Unpin.js index b1f23eb..dd8483e 100644 --- a/implementors/core/marker/trait.Unpin.js +++ b/implementors/core/marker/trait.Unpin.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Unpin for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl Unpin for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Unpin for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Unpin for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Unpin for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Unpin for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Unpin for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Unpin for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Unpin for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Unpin for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Unpin for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Unpin for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Unpin for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Unpin for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl Unpin for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Unpin for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Unpin for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Unpin for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl Unpin for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl Unpin for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl Unpin for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl Unpin for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl Unpin for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl Unpin for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl Unpin for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Unpin for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl Unpin for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> Unpin for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> Unpin for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl Unpin for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl Unpin for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl Unpin for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl Unpin for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl Unpin for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl Unpin for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> Unpin for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl Unpin for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl Unpin for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl Unpin for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl Unpin for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Unpin for Variables",1,["libmedium::data::get_post::Variables"]],["impl Unpin for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl Unpin for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl Unpin for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl Unpin for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl Unpin for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl Unpin for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl Unpin for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl Unpin for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl Unpin for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl Unpin for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl Unpin for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl Unpin for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl Unpin for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl Unpin for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl Unpin for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl Unpin for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl Unpin for Data",1,["libmedium::data::Data"]],["impl Unpin for GetPost",1,["libmedium::data::GetPost"]],["impl Unpin for GistContent",1,["libmedium::data::GistContent"]],["impl Unpin for GistFile",1,["libmedium::data::GistFile"]],["impl Unpin for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl Unpin for PostUrl",1,["libmedium::data::PostUrl"]],["impl Unpin for Meta",1,["libmedium::meta::routes::Meta"]],["impl Unpin for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl Unpin for build_details",1,["libmedium::meta::build_details"]],["impl Unpin for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> Unpin for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> Unpin for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl Unpin for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl Unpin for Post",1,["libmedium::proxy::Post"]],["impl Unpin for index",1,["libmedium::proxy::index"]],["impl Unpin for assets",1,["libmedium::proxy::assets"]],["impl Unpin for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl Unpin for page",1,["libmedium::proxy::page"]],["impl<'a> Unpin for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl Unpin for Routes",1,["libmedium::routes::Routes"]],["impl Unpin for Server",1,["libmedium::settings::Server"]],["impl Unpin for Settings",1,["libmedium::settings::Settings"]],["impl Unpin for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/ops/deref/trait.Deref.js b/implementors/core/ops/deref/trait.Deref.js index aab5426..b596523 100644 --- a/implementors/core/ops/deref/trait.Deref.js +++ b/implementors/core/ops/deref/trait.Deref.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Deref for SETTINGS","synthetic":false,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Deref for SETTINGS"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js b/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js index 83e54f4..0131705 100644 --- a/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl RefUnwindSafe for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl RefUnwindSafe for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl RefUnwindSafe for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl RefUnwindSafe for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl RefUnwindSafe for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl RefUnwindSafe for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl RefUnwindSafe for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl RefUnwindSafe for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl RefUnwindSafe for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl RefUnwindSafe for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl RefUnwindSafe for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl !RefUnwindSafe for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl RefUnwindSafe for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl RefUnwindSafe for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl RefUnwindSafe for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl RefUnwindSafe for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl RefUnwindSafe for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl RefUnwindSafe for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl RefUnwindSafe for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl RefUnwindSafe for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl RefUnwindSafe for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> RefUnwindSafe for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> RefUnwindSafe for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl RefUnwindSafe for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl RefUnwindSafe for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl RefUnwindSafe for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl RefUnwindSafe for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl RefUnwindSafe for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl RefUnwindSafe for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> RefUnwindSafe for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl RefUnwindSafe for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl RefUnwindSafe for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl RefUnwindSafe for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl RefUnwindSafe for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl RefUnwindSafe for Variables",1,["libmedium::data::get_post::Variables"]],["impl RefUnwindSafe for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl RefUnwindSafe for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl RefUnwindSafe for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl RefUnwindSafe for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl RefUnwindSafe for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl RefUnwindSafe for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl RefUnwindSafe for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl RefUnwindSafe for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl RefUnwindSafe for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl RefUnwindSafe for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl RefUnwindSafe for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl RefUnwindSafe for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl RefUnwindSafe for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl !RefUnwindSafe for Data",1,["libmedium::data::Data"]],["impl RefUnwindSafe for GetPost",1,["libmedium::data::GetPost"]],["impl RefUnwindSafe for GistContent",1,["libmedium::data::GistContent"]],["impl RefUnwindSafe for GistFile",1,["libmedium::data::GistFile"]],["impl RefUnwindSafe for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl RefUnwindSafe for PostUrl",1,["libmedium::data::PostUrl"]],["impl RefUnwindSafe for Meta",1,["libmedium::meta::routes::Meta"]],["impl RefUnwindSafe for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl RefUnwindSafe for build_details",1,["libmedium::meta::build_details"]],["impl RefUnwindSafe for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> RefUnwindSafe for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> RefUnwindSafe for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl RefUnwindSafe for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl RefUnwindSafe for Post",1,["libmedium::proxy::Post"]],["impl RefUnwindSafe for index",1,["libmedium::proxy::index"]],["impl RefUnwindSafe for assets",1,["libmedium::proxy::assets"]],["impl RefUnwindSafe for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl RefUnwindSafe for page",1,["libmedium::proxy::page"]],["impl<'a> RefUnwindSafe for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl RefUnwindSafe for Routes",1,["libmedium::routes::Routes"]],["impl RefUnwindSafe for Server",1,["libmedium::settings::Server"]],["impl RefUnwindSafe for Settings",1,["libmedium::settings::Settings"]],["impl RefUnwindSafe for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/panic/unwind_safe/trait.UnwindSafe.js b/implementors/core/panic/unwind_safe/trait.UnwindSafe.js index 96d4066..eb1b79b 100644 --- a/implementors/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/implementors/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl UnwindSafe for Variables","synthetic":true,"types":["libmedium::data::get_post::Variables"]},{"text":"impl UnwindSafe for ResponseData","synthetic":true,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl UnwindSafe for GetPostPost","synthetic":true,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl UnwindSafe for GetPostPostCreator","synthetic":true,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl UnwindSafe for GetPostPostPreviewImage","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl UnwindSafe for GetPostPostPreviewContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl UnwindSafe for GetPostPostContent","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModel","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModelParagraphs","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModelParagraphsMarkups","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModelParagraphsIframe","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl UnwindSafe for GetPostPostContentBodyModelParagraphsMetadata","synthetic":true,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl UnwindSafe for Variables","synthetic":true,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl UnwindSafe for ResponseData","synthetic":true,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl UnwindSafe for GetPostLightPost","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl UnwindSafe for GetPostLightPostCreator","synthetic":true,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl !UnwindSafe for Data","synthetic":true,"types":["libmedium::data::Data"]},{"text":"impl UnwindSafe for GetPost","synthetic":true,"types":["libmedium::data::GetPost"]},{"text":"impl UnwindSafe for GistContent","synthetic":true,"types":["libmedium::data::GistContent"]},{"text":"impl UnwindSafe for GistFile","synthetic":true,"types":["libmedium::data::GistFile"]},{"text":"impl UnwindSafe for GetPostLight","synthetic":true,"types":["libmedium::data::GetPostLight"]},{"text":"impl UnwindSafe for PostUrl","synthetic":true,"types":["libmedium::data::PostUrl"]},{"text":"impl UnwindSafe for Meta","synthetic":true,"types":["libmedium::meta::routes::Meta"]},{"text":"impl UnwindSafe for BuildDetails","synthetic":true,"types":["libmedium::meta::BuildDetails"]},{"text":"impl UnwindSafe for build_details","synthetic":true,"types":["libmedium::meta::build_details"]},{"text":"impl UnwindSafe for PostitionType","synthetic":true,"types":["libmedium::post::PostitionType"]},{"text":"impl<'a, 'b> UnwindSafe for Markup<'a, 'b>","synthetic":true,"types":["libmedium::post::Markup"]},{"text":"impl<'a, 'b> UnwindSafe for PositionMap<'a, 'b>","synthetic":true,"types":["libmedium::post::PositionMap"]},{"text":"impl UnwindSafe for Proxy","synthetic":true,"types":["libmedium::proxy::routes::Proxy"]},{"text":"impl UnwindSafe for Post","synthetic":true,"types":["libmedium::proxy::Post"]},{"text":"impl UnwindSafe for index","synthetic":true,"types":["libmedium::proxy::index"]},{"text":"impl UnwindSafe for assets","synthetic":true,"types":["libmedium::proxy::assets"]},{"text":"impl UnwindSafe for by_post_id","synthetic":true,"types":["libmedium::proxy::by_post_id"]},{"text":"impl UnwindSafe for page","synthetic":true,"types":["libmedium::proxy::page"]},{"text":"impl<'a> UnwindSafe for SourcegraphQuery<'a>","synthetic":true,"types":["libmedium::render_html::SourcegraphQuery"]},{"text":"impl UnwindSafe for Routes","synthetic":true,"types":["libmedium::routes::Routes"]},{"text":"impl UnwindSafe for Server","synthetic":true,"types":["libmedium::settings::Server"]},{"text":"impl UnwindSafe for Settings","synthetic":true,"types":["libmedium::settings::Settings"]},{"text":"impl UnwindSafe for SETTINGS","synthetic":true,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl UnwindSafe for Variables",1,["libmedium::data::get_post::Variables"]],["impl UnwindSafe for ResponseData",1,["libmedium::data::get_post::ResponseData"]],["impl UnwindSafe for GetPostPost",1,["libmedium::data::get_post::GetPostPost"]],["impl UnwindSafe for GetPostPostCreator",1,["libmedium::data::get_post::GetPostPostCreator"]],["impl UnwindSafe for GetPostPostPreviewImage",1,["libmedium::data::get_post::GetPostPostPreviewImage"]],["impl UnwindSafe for GetPostPostPreviewContent",1,["libmedium::data::get_post::GetPostPostPreviewContent"]],["impl UnwindSafe for GetPostPostContent",1,["libmedium::data::get_post::GetPostPostContent"]],["impl UnwindSafe for GetPostPostContentBodyModel",1,["libmedium::data::get_post::GetPostPostContentBodyModel"]],["impl UnwindSafe for GetPostPostContentBodyModelParagraphs",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]],["impl UnwindSafe for GetPostPostContentBodyModelParagraphsMarkups",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]],["impl UnwindSafe for GetPostPostContentBodyModelParagraphsIframe",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]],["impl UnwindSafe for GetPostPostContentBodyModelParagraphsIframeMediaResource",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]],["impl UnwindSafe for GetPostPostContentBodyModelParagraphsMetadata",1,["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]],["impl UnwindSafe for Variables",1,["libmedium::data::get_post_light::Variables"]],["impl UnwindSafe for ResponseData",1,["libmedium::data::get_post_light::ResponseData"]],["impl UnwindSafe for GetPostLightPost",1,["libmedium::data::get_post_light::GetPostLightPost"]],["impl UnwindSafe for GetPostLightPostCreator",1,["libmedium::data::get_post_light::GetPostLightPostCreator"]],["impl !UnwindSafe for Data",1,["libmedium::data::Data"]],["impl UnwindSafe for GetPost",1,["libmedium::data::GetPost"]],["impl UnwindSafe for GistContent",1,["libmedium::data::GistContent"]],["impl UnwindSafe for GistFile",1,["libmedium::data::GistFile"]],["impl UnwindSafe for GetPostLight",1,["libmedium::data::GetPostLight"]],["impl UnwindSafe for PostUrl",1,["libmedium::data::PostUrl"]],["impl UnwindSafe for Meta",1,["libmedium::meta::routes::Meta"]],["impl UnwindSafe for BuildDetails",1,["libmedium::meta::BuildDetails"]],["impl UnwindSafe for build_details",1,["libmedium::meta::build_details"]],["impl UnwindSafe for PostitionType",1,["libmedium::post::PostitionType"]],["impl<'a, 'b> UnwindSafe for Markup<'a, 'b>",1,["libmedium::post::Markup"]],["impl<'a, 'b> UnwindSafe for PositionMap<'a, 'b>",1,["libmedium::post::PositionMap"]],["impl UnwindSafe for Proxy",1,["libmedium::proxy::routes::Proxy"]],["impl UnwindSafe for Post",1,["libmedium::proxy::Post"]],["impl UnwindSafe for index",1,["libmedium::proxy::index"]],["impl UnwindSafe for assets",1,["libmedium::proxy::assets"]],["impl UnwindSafe for by_post_id",1,["libmedium::proxy::by_post_id"]],["impl UnwindSafe for page",1,["libmedium::proxy::page"]],["impl<'a> UnwindSafe for SourcegraphQuery<'a>",1,["libmedium::render_html::SourcegraphQuery"]],["impl UnwindSafe for Routes",1,["libmedium::routes::Routes"]],["impl UnwindSafe for Server",1,["libmedium::settings::Server"]],["impl UnwindSafe for Settings",1,["libmedium::settings::Settings"]],["impl UnwindSafe for SETTINGS",1,["libmedium::SETTINGS"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/graphql_client/trait.GraphQLQuery.js b/implementors/graphql_client/trait.GraphQLQuery.js index 7bfbeb4..12354de 100644 --- a/implementors/graphql_client/trait.GraphQLQuery.js +++ b/implementors/graphql_client/trait.GraphQLQuery.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl GraphQLQuery for GetPost","synthetic":false,"types":["libmedium::data::GetPost"]},{"text":"impl GraphQLQuery for GetPostLight","synthetic":false,"types":["libmedium::data::GetPostLight"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl GraphQLQuery for GetPost"],["impl GraphQLQuery for GetPostLight"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/lazy_static/trait.LazyStatic.js b/implementors/lazy_static/trait.LazyStatic.js index 4e573bf..a45c398 100644 --- a/implementors/lazy_static/trait.LazyStatic.js +++ b/implementors/lazy_static/trait.LazyStatic.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl LazyStatic for SETTINGS","synthetic":false,"types":["libmedium::SETTINGS"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl LazyStatic for SETTINGS"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/libmedium/proxy/trait.StringUtils.js b/implementors/libmedium/proxy/trait.StringUtils.js index 751fa27..b17e666 100644 --- a/implementors/libmedium/proxy/trait.StringUtils.js +++ b/implementors/libmedium/proxy/trait.StringUtils.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = []; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sailfish/private/trait.Sealed.js b/implementors/sailfish/private/trait.Sealed.js index 43b085c..f9db193 100644 --- a/implementors/sailfish/private/trait.Sealed.js +++ b/implementors/sailfish/private/trait.Sealed.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Sealed for Post","synthetic":false,"types":["libmedium::proxy::Post"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Sealed for Post"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sailfish/trait.TemplateOnce.js b/implementors/sailfish/trait.TemplateOnce.js index 6646a60..c78c11c 100644 --- a/implementors/sailfish/trait.TemplateOnce.js +++ b/implementors/sailfish/trait.TemplateOnce.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl TemplateOnce for Post","synthetic":false,"types":["libmedium::proxy::Post"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl TemplateOnce for Post"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/serde/de/trait.Deserialize.js b/implementors/serde/de/trait.Deserialize.js index 8984422..cc6e096 100644 --- a/implementors/serde/de/trait.Deserialize.js +++ b/implementors/serde/de/trait.Deserialize.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl<'de> Deserialize<'de> for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl<'de> Deserialize<'de> for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl<'de> Deserialize<'de> for GistContent","synthetic":false,"types":["libmedium::data::GistContent"]},{"text":"impl<'de> Deserialize<'de> for GistFile","synthetic":false,"types":["libmedium::data::GistFile"]},{"text":"impl<'de> Deserialize<'de> for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl<'de> Deserialize<'de> for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl<'de> Deserialize<'de> for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Deserialize<'static> for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]},{"text":"impl<'de> Deserialize<'de> for Server","synthetic":false,"types":["libmedium::settings::Server"]},{"text":"impl<'de> Deserialize<'de> for Settings","synthetic":false,"types":["libmedium::settings::Settings"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl<'de> Deserialize<'de> for ResponseData"],["impl<'de> Deserialize<'de> for GetPostPost"],["impl<'de> Deserialize<'de> for GetPostPostCreator"],["impl<'de> Deserialize<'de> for GetPostPostPreviewImage"],["impl<'de> Deserialize<'de> for GetPostPostPreviewContent"],["impl<'de> Deserialize<'de> for GetPostPostContent"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModel"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphs"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsMarkups"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsIframe"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsIframeMediaResource"],["impl<'de> Deserialize<'de> for GetPostPostContentBodyModelParagraphsMetadata"],["impl<'de> Deserialize<'de> for GistContent"],["impl<'de> Deserialize<'de> for GistFile"],["impl<'de> Deserialize<'de> for ResponseData"],["impl<'de> Deserialize<'de> for GetPostLightPost"],["impl<'de> Deserialize<'de> for GetPostLightPostCreator"],["impl Deserialize<'static> for BuildDetails"],["impl<'de> Deserialize<'de> for Server"],["impl<'de> Deserialize<'de> for Settings"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/serde/ser/trait.Serialize.js b/implementors/serde/ser/trait.Serialize.js index 5e851aa..00cb89d 100644 --- a/implementors/serde/ser/trait.Serialize.js +++ b/implementors/serde/ser/trait.Serialize.js @@ -1,3 +1,3 @@ -(function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Serialize for Variables","synthetic":false,"types":["libmedium::data::get_post::Variables"]},{"text":"impl Serialize for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Serialize for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Serialize for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Serialize for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Serialize for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Serialize for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Serialize for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Serialize for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Serialize for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Serialize for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Serialize for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Serialize for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Serialize for GistContent","synthetic":false,"types":["libmedium::data::GistContent"]},{"text":"impl Serialize for GistFile","synthetic":false,"types":["libmedium::data::GistFile"]},{"text":"impl Serialize for Variables","synthetic":false,"types":["libmedium::data::get_post_light::Variables"]},{"text":"impl Serialize for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Serialize for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Serialize for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Serialize for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]}]; -if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file +(function() {var implementors = { +"libmedium":[["impl Serialize for Variables"],["impl Serialize for ResponseData"],["impl Serialize for GetPostPost"],["impl Serialize for GetPostPostCreator"],["impl Serialize for GetPostPostPreviewImage"],["impl Serialize for GetPostPostPreviewContent"],["impl Serialize for GetPostPostContent"],["impl Serialize for GetPostPostContentBodyModel"],["impl Serialize for GetPostPostContentBodyModelParagraphs"],["impl Serialize for GetPostPostContentBodyModelParagraphsMarkups"],["impl Serialize for GetPostPostContentBodyModelParagraphsIframe"],["impl Serialize for GetPostPostContentBodyModelParagraphsIframeMediaResource"],["impl Serialize for GetPostPostContentBodyModelParagraphsMetadata"],["impl Serialize for GistContent"],["impl Serialize for GistFile"],["impl Serialize for Variables"],["impl Serialize for ResponseData"],["impl Serialize for GetPostLightPost"],["impl Serialize for GetPostLightPostCreator"],["impl Serialize for BuildDetails"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/libmedium/all.html b/libmedium/all.html index 2f39c1f..399e6c5 100644 --- a/libmedium/all.html +++ b/libmedium/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Typedefs

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Typedefs

Constants

\ No newline at end of file diff --git a/libmedium/constant.CACHE_AGE.html b/libmedium/constant.CACHE_AGE.html index d5085cc..4045c2a 100644 --- a/libmedium/constant.CACHE_AGE.html +++ b/libmedium/constant.CACHE_AGE.html @@ -1 +1 @@ -CACHE_AGE in libmedium - Rust
pub const CACHE_AGE: u32 = 604800;
\ No newline at end of file +CACHE_AGE in libmedium - Rust
pub const CACHE_AGE: u32 = 604800;
\ No newline at end of file diff --git a/libmedium/constant.GIT_COMMIT_HASH.html b/libmedium/constant.GIT_COMMIT_HASH.html index e7d61ec..f29f380 100644 --- a/libmedium/constant.GIT_COMMIT_HASH.html +++ b/libmedium/constant.GIT_COMMIT_HASH.html @@ -1 +1 @@ -GIT_COMMIT_HASH in libmedium - Rust
pub const GIT_COMMIT_HASH: &'static str = _;
\ No newline at end of file +GIT_COMMIT_HASH in libmedium - Rust
pub const GIT_COMMIT_HASH: &'static str = _;
\ No newline at end of file diff --git a/libmedium/constant.PKG_DESCRIPTION.html b/libmedium/constant.PKG_DESCRIPTION.html index 3f1e389..f837ff6 100644 --- a/libmedium/constant.PKG_DESCRIPTION.html +++ b/libmedium/constant.PKG_DESCRIPTION.html @@ -1 +1 @@ -PKG_DESCRIPTION in libmedium - Rust
pub const PKG_DESCRIPTION: &'static str = _;
\ No newline at end of file +PKG_DESCRIPTION in libmedium - Rust
pub const PKG_DESCRIPTION: &'static str = _;
\ No newline at end of file diff --git a/libmedium/constant.PKG_HOMEPAGE.html b/libmedium/constant.PKG_HOMEPAGE.html index 6a91a8f..1ddca18 100644 --- a/libmedium/constant.PKG_HOMEPAGE.html +++ b/libmedium/constant.PKG_HOMEPAGE.html @@ -1 +1 @@ -PKG_HOMEPAGE in libmedium - Rust
pub const PKG_HOMEPAGE: &'static str = _;
\ No newline at end of file +PKG_HOMEPAGE in libmedium - Rust
pub const PKG_HOMEPAGE: &'static str = _;
\ No newline at end of file diff --git a/libmedium/constant.PKG_NAME.html b/libmedium/constant.PKG_NAME.html index 9e3697f..69726be 100644 --- a/libmedium/constant.PKG_NAME.html +++ b/libmedium/constant.PKG_NAME.html @@ -1 +1 @@ -PKG_NAME in libmedium - Rust
pub const PKG_NAME: &'static str = _;
\ No newline at end of file +PKG_NAME in libmedium - Rust
pub const PKG_NAME: &'static str = _;
\ No newline at end of file diff --git a/libmedium/constant.V1_API_ROUTES.html b/libmedium/constant.V1_API_ROUTES.html index 126cdc0..477bfc2 100644 --- a/libmedium/constant.V1_API_ROUTES.html +++ b/libmedium/constant.V1_API_ROUTES.html @@ -1 +1 @@ -V1_API_ROUTES in libmedium - Rust
pub const V1_API_ROUTES: Routes;
\ No newline at end of file +V1_API_ROUTES in libmedium - Rust
pub const V1_API_ROUTES: Routes;
\ No newline at end of file diff --git a/libmedium/constant.VERSION.html b/libmedium/constant.VERSION.html index 95afee7..1b208aa 100644 --- a/libmedium/constant.VERSION.html +++ b/libmedium/constant.VERSION.html @@ -1 +1 @@ -VERSION in libmedium - Rust
pub const VERSION: &'static str = _;
\ No newline at end of file +VERSION in libmedium - Rust
pub const VERSION: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/constant.GIST_CACHE_VERSION.html b/libmedium/data/constant.GIST_CACHE_VERSION.html index febf139..f621182 100644 --- a/libmedium/data/constant.GIST_CACHE_VERSION.html +++ b/libmedium/data/constant.GIST_CACHE_VERSION.html @@ -1 +1 @@ -GIST_CACHE_VERSION in libmedium::data - Rust
const GIST_CACHE_VERSION: usize = 1;
\ No newline at end of file +GIST_CACHE_VERSION in libmedium::data - Rust
const GIST_CACHE_VERSION: usize = 1;
\ No newline at end of file diff --git a/libmedium/data/constant.POST_CACHE_VERSION.html b/libmedium/data/constant.POST_CACHE_VERSION.html index cc6212a..6af98d2 100644 --- a/libmedium/data/constant.POST_CACHE_VERSION.html +++ b/libmedium/data/constant.POST_CACHE_VERSION.html @@ -1 +1 @@ -POST_CACHE_VERSION in libmedium::data - Rust
const POST_CACHE_VERSION: usize = 3;
\ No newline at end of file +POST_CACHE_VERSION in libmedium::data - Rust
const POST_CACHE_VERSION: usize = 3;
\ No newline at end of file diff --git a/libmedium/data/get_post/constant.OPERATION_NAME.html b/libmedium/data/get_post/constant.OPERATION_NAME.html index d16bb9b..274dd9d 100644 --- a/libmedium/data/get_post/constant.OPERATION_NAME.html +++ b/libmedium/data/get_post/constant.OPERATION_NAME.html @@ -1 +1 @@ -OPERATION_NAME in libmedium::data::get_post - Rust
pub const OPERATION_NAME: &'static str = _;
\ No newline at end of file +OPERATION_NAME in libmedium::data::get_post - Rust
pub const OPERATION_NAME: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post/constant.QUERY.html b/libmedium/data/get_post/constant.QUERY.html index d072ebb..2684700 100644 --- a/libmedium/data/get_post/constant.QUERY.html +++ b/libmedium/data/get_post/constant.QUERY.html @@ -1 +1 @@ -QUERY in libmedium::data::get_post - Rust
pub const QUERY: &'static str = _;
\ No newline at end of file +QUERY in libmedium::data::get_post - Rust
pub const QUERY: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post/constant.__QUERY_WORKAROUND.html b/libmedium/data/get_post/constant.__QUERY_WORKAROUND.html index 7135590..64ab733 100644 --- a/libmedium/data/get_post/constant.__QUERY_WORKAROUND.html +++ b/libmedium/data/get_post/constant.__QUERY_WORKAROUND.html @@ -1 +1 @@ -__QUERY_WORKAROUND in libmedium::data::get_post - Rust
const __QUERY_WORKAROUND: &'static str = _;
\ No newline at end of file +__QUERY_WORKAROUND in libmedium::data::get_post - Rust
const __QUERY_WORKAROUND: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post/index.html b/libmedium/data/get_post/index.html index 2cf2425..fe7dc9b 100644 --- a/libmedium/data/get_post/index.html +++ b/libmedium/data/get_post/index.html @@ -1 +1 @@ -libmedium::data::get_post - Rust

Structs

Constants

Type Definitions

Boolean 🔒
Float 🔒
ID 🔒
Int 🔒
\ No newline at end of file +libmedium::data::get_post - Rust

Structs

Constants

Type Definitions

Boolean 🔒
Float 🔒
ID 🔒
Int 🔒
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPost.html b/libmedium/data/get_post/struct.GetPostPost.html index f81436e..bd31fdb 100644 --- a/libmedium/data/get_post/struct.GetPostPost.html +++ b/libmedium/data/get_post/struct.GetPostPost.html @@ -1,44 +1,18 @@ -GetPostPost in libmedium::data::get_post - Rust
pub struct GetPostPost {
-    pub title: String,
-    pub created_at: i64,
-    pub reading_time: f64,
-    pub unique_slug: String,
+GetPostPost in libmedium::data::get_post - Rust
pub struct GetPostPost {
+    pub title: String,
+    pub created_at: i64,
+    pub reading_time: f64,
+    pub unique_slug: String,
     pub creator: GetPostPostCreator,
-    pub preview_image: Option<GetPostPostPreviewImage>,
-    pub preview_content: Option<GetPostPostPreviewContent>,
+    pub preview_image: Option<GetPostPostPreviewImage>,
+    pub preview_content: Option<GetPostPostPreviewContent>,
     pub content: GetPostPostContent,
-}

Fields

title: Stringcreated_at: i64reading_time: f64unique_slug: Stringcreator: GetPostPostCreatorpreview_image: Option<GetPostPostPreviewImage>preview_content: Option<GetPostPostPreviewContent>content: GetPostPostContent

Implementations

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

title: Stringcreated_at: i64reading_time: f64unique_slug: Stringcreator: GetPostPostCreatorpreview_image: Option<GetPostPostPreviewImage>preview_content: Option<GetPostPostPreviewContent>content: GetPostPostContent

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContent.html b/libmedium/data/get_post/struct.GetPostPostContent.html index 7d71a31..420a92a 100644 --- a/libmedium/data/get_post/struct.GetPostPostContent.html +++ b/libmedium/data/get_post/struct.GetPostPostContent.html @@ -1,37 +1,11 @@ -GetPostPostContent in libmedium::data::get_post - Rust
pub struct GetPostPostContent {
+GetPostPostContent in libmedium::data::get_post - Rust
pub struct GetPostPostContent {
     pub body_model: GetPostPostContentBodyModel,
-}

Fields

body_model: GetPostPostContentBodyModel

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

body_model: GetPostPostContentBodyModel

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModel.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModel.html index 3b805c9..6ad49aa 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModel.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModel.html @@ -1,37 +1,11 @@ -GetPostPostContentBodyModel in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModel {
-    pub paragraphs: Vec<GetPostPostContentBodyModelParagraphs>,
-}

Fields

paragraphs: Vec<GetPostPostContentBodyModelParagraphs>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModel in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModel {
+    pub paragraphs: Vec<GetPostPostContentBodyModelParagraphs>,
+}

Fields

paragraphs: Vec<GetPostPostContentBodyModelParagraphs>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphs.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphs.html index 9b8518e..8be4f00 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphs.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphs.html @@ -1,43 +1,17 @@ -GetPostPostContentBodyModelParagraphs in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphs {
-    pub text: String,
-    pub type_: String,
-    pub href: Option<String>,
-    pub layout: Option<String>,
-    pub markups: Vec<GetPostPostContentBodyModelParagraphsMarkups>,
-    pub iframe: Option<GetPostPostContentBodyModelParagraphsIframe>,
-    pub metadata: Option<GetPostPostContentBodyModelParagraphsMetadata>,
-}

Fields

text: Stringtype_: Stringhref: Option<String>layout: Option<String>markups: Vec<GetPostPostContentBodyModelParagraphsMarkups>iframe: Option<GetPostPostContentBodyModelParagraphsIframe>metadata: Option<GetPostPostContentBodyModelParagraphsMetadata>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModelParagraphs in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphs {
+    pub text: String,
+    pub type_: String,
+    pub href: Option<String>,
+    pub layout: Option<String>,
+    pub markups: Vec<GetPostPostContentBodyModelParagraphsMarkups>,
+    pub iframe: Option<GetPostPostContentBodyModelParagraphsIframe>,
+    pub metadata: Option<GetPostPostContentBodyModelParagraphsMetadata>,
+}

Fields

text: Stringtype_: Stringhref: Option<String>layout: Option<String>markups: Vec<GetPostPostContentBodyModelParagraphsMarkups>iframe: Option<GetPostPostContentBodyModelParagraphsIframe>metadata: Option<GetPostPostContentBodyModelParagraphsMetadata>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html index cf18328..9cff5a5 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html @@ -1,37 +1,11 @@ -GetPostPostContentBodyModelParagraphsIframe in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsIframe {
-    pub media_resource: Option<GetPostPostContentBodyModelParagraphsIframeMediaResource>,
-}

Fields

media_resource: Option<GetPostPostContentBodyModelParagraphsIframeMediaResource>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModelParagraphsIframe in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsIframe {
+    pub media_resource: Option<GetPostPostContentBodyModelParagraphsIframeMediaResource>,
+}

Fields

media_resource: Option<GetPostPostContentBodyModelParagraphsIframeMediaResource>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html index 74f0e0b..ad7d6f6 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html @@ -1,40 +1,14 @@ -GetPostPostContentBodyModelParagraphsIframeMediaResource in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsIframeMediaResource {
-    pub href: String,
-    pub iframe_src: String,
-    pub iframe_width: i64,
-    pub iframe_height: Option<i64>,
-}

Fields

href: Stringiframe_src: Stringiframe_width: i64iframe_height: Option<i64>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModelParagraphsIframeMediaResource in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsIframeMediaResource {
+    pub href: String,
+    pub iframe_src: String,
+    pub iframe_width: i64,
+    pub iframe_height: Option<i64>,
+}

Fields

href: Stringiframe_src: Stringiframe_width: i64iframe_height: Option<i64>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html index 917c8f0..cfe8aa8 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html @@ -1,43 +1,17 @@ -GetPostPostContentBodyModelParagraphsMarkups in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsMarkups {
-    pub title: Option<String>,
-    pub type_: String,
-    pub href: Option<String>,
-    pub user_id: Option<String>,
-    pub start: i64,
-    pub end: i64,
-    pub anchor_type: Option<String>,
-}

Fields

title: Option<String>type_: Stringhref: Option<String>user_id: Option<String>start: i64end: i64anchor_type: Option<String>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModelParagraphsMarkups in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsMarkups {
+    pub title: Option<String>,
+    pub type_: String,
+    pub href: Option<String>,
+    pub user_id: Option<String>,
+    pub start: i64,
+    pub end: i64,
+    pub anchor_type: Option<String>,
+}

Fields

title: Option<String>type_: Stringhref: Option<String>user_id: Option<String>start: i64end: i64anchor_type: Option<String>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html index 7b32cf4..005e831 100644 --- a/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html +++ b/libmedium/data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html @@ -1,39 +1,13 @@ -GetPostPostContentBodyModelParagraphsMetadata in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsMetadata {
-    pub id: String,
-    pub original_width: Option<i64>,
-    pub original_height: Option<i64>,
-}

Fields

id: Stringoriginal_width: Option<i64>original_height: Option<i64>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostContentBodyModelParagraphsMetadata in libmedium::data::get_post - Rust
pub struct GetPostPostContentBodyModelParagraphsMetadata {
+    pub id: String,
+    pub original_width: Option<i64>,
+    pub original_height: Option<i64>,
+}

Fields

id: Stringoriginal_width: Option<i64>original_height: Option<i64>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostCreator.html b/libmedium/data/get_post/struct.GetPostPostCreator.html index c525669..8c6c7ad 100644 --- a/libmedium/data/get_post/struct.GetPostPostCreator.html +++ b/libmedium/data/get_post/struct.GetPostPostCreator.html @@ -1,40 +1,14 @@ -GetPostPostCreator in libmedium::data::get_post - Rust
pub struct GetPostPostCreator {
-    pub name: String,
-    pub id: String,
-    pub image_id: String,
-    pub username: String,
-}

Fields

name: Stringid: Stringimage_id: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostCreator in libmedium::data::get_post - Rust
pub struct GetPostPostCreator {
+    pub name: String,
+    pub id: String,
+    pub image_id: String,
+    pub username: String,
+}

Fields

name: Stringid: Stringimage_id: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostPreviewContent.html b/libmedium/data/get_post/struct.GetPostPostPreviewContent.html index 013f212..9d00511 100644 --- a/libmedium/data/get_post/struct.GetPostPostPreviewContent.html +++ b/libmedium/data/get_post/struct.GetPostPostPreviewContent.html @@ -1,37 +1,11 @@ -GetPostPostPreviewContent in libmedium::data::get_post - Rust
pub struct GetPostPostPreviewContent {
-    pub subtitle: String,
-}

Fields

subtitle: String

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostPreviewContent in libmedium::data::get_post - Rust
pub struct GetPostPostPreviewContent {
+    pub subtitle: String,
+}

Fields

subtitle: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPostPreviewImage.html b/libmedium/data/get_post/struct.GetPostPostPreviewImage.html index 3b29b9b..5f5cef9 100644 --- a/libmedium/data/get_post/struct.GetPostPostPreviewImage.html +++ b/libmedium/data/get_post/struct.GetPostPostPreviewImage.html @@ -1,37 +1,11 @@ -GetPostPostPreviewImage in libmedium::data::get_post - Rust
pub struct GetPostPostPreviewImage {
-    pub id: Option<String>,
-}

Fields

id: Option<String>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostPostPreviewImage in libmedium::data::get_post - Rust
pub struct GetPostPostPreviewImage {
+    pub id: Option<String>,
+}

Fields

id: Option<String>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.ResponseData.html b/libmedium/data/get_post/struct.ResponseData.html index 41ad4a5..a16254f 100644 --- a/libmedium/data/get_post/struct.ResponseData.html +++ b/libmedium/data/get_post/struct.ResponseData.html @@ -1,37 +1,11 @@ -ResponseData in libmedium::data::get_post - Rust
pub struct ResponseData {
-    pub post: Option<GetPostPost>,
-}

Fields

post: Option<GetPostPost>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+ResponseData in libmedium::data::get_post - Rust
pub struct ResponseData {
+    pub post: Option<GetPostPost>,
+}

Fields

post: Option<GetPostPost>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.Variables.html b/libmedium/data/get_post/struct.Variables.html index 1e0186f..062898c 100644 --- a/libmedium/data/get_post/struct.Variables.html +++ b/libmedium/data/get_post/struct.Variables.html @@ -1,30 +1,11 @@ -Variables in libmedium::data::get_post - Rust
pub struct Variables {
-    pub id: String,
-}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+Variables in libmedium::data::get_post - Rust
pub struct Variables {
+    pub id: String,
+}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post/type.Boolean.html b/libmedium/data/get_post/type.Boolean.html index 75da112..d3551ce 100644 --- a/libmedium/data/get_post/type.Boolean.html +++ b/libmedium/data/get_post/type.Boolean.html @@ -1 +1 @@ -Boolean in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Boolean

source · []
type Boolean = bool;
\ No newline at end of file +Boolean in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Boolean

source · []
type Boolean = bool;
\ No newline at end of file diff --git a/libmedium/data/get_post/type.Float.html b/libmedium/data/get_post/type.Float.html index d3a8a45..3f7197d 100644 --- a/libmedium/data/get_post/type.Float.html +++ b/libmedium/data/get_post/type.Float.html @@ -1 +1 @@ -Float in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Float

source · []
type Float = f64;
\ No newline at end of file +Float in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Float

source · []
type Float = f64;
\ No newline at end of file diff --git a/libmedium/data/get_post/type.ID.html b/libmedium/data/get_post/type.ID.html index b945549..4ecff62 100644 --- a/libmedium/data/get_post/type.ID.html +++ b/libmedium/data/get_post/type.ID.html @@ -1 +1 @@ -ID in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::ID

source · []
type ID = String;
\ No newline at end of file +ID in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::ID

source · []
type ID = String;
\ No newline at end of file diff --git a/libmedium/data/get_post/type.Int.html b/libmedium/data/get_post/type.Int.html index 8f14538..7a388e3 100644 --- a/libmedium/data/get_post/type.Int.html +++ b/libmedium/data/get_post/type.Int.html @@ -1 +1 @@ -Int in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Int

source · []
type Int = i64;
\ No newline at end of file +Int in libmedium::data::get_post - Rust

Type Definition libmedium::data::get_post::Int

source · []
type Int = i64;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/constant.OPERATION_NAME.html b/libmedium/data/get_post_light/constant.OPERATION_NAME.html index e69efb4..48d15fb 100644 --- a/libmedium/data/get_post_light/constant.OPERATION_NAME.html +++ b/libmedium/data/get_post_light/constant.OPERATION_NAME.html @@ -1 +1 @@ -OPERATION_NAME in libmedium::data::get_post_light - Rust
pub const OPERATION_NAME: &'static str = _;
\ No newline at end of file +OPERATION_NAME in libmedium::data::get_post_light - Rust
pub const OPERATION_NAME: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/constant.QUERY.html b/libmedium/data/get_post_light/constant.QUERY.html index 90aa4f1..2eccd62 100644 --- a/libmedium/data/get_post_light/constant.QUERY.html +++ b/libmedium/data/get_post_light/constant.QUERY.html @@ -1 +1 @@ -QUERY in libmedium::data::get_post_light - Rust
pub const QUERY: &'static str = _;
\ No newline at end of file +QUERY in libmedium::data::get_post_light - Rust
pub const QUERY: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html b/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html index 8560ec9..25d1925 100644 --- a/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html +++ b/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html @@ -1 +1 @@ -__QUERY_WORKAROUND in libmedium::data::get_post_light - Rust
const __QUERY_WORKAROUND: &'static str = _;
\ No newline at end of file +__QUERY_WORKAROUND in libmedium::data::get_post_light - Rust
const __QUERY_WORKAROUND: &'static str = _;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/index.html b/libmedium/data/get_post_light/index.html index 8d0d6cc..a971ec6 100644 --- a/libmedium/data/get_post_light/index.html +++ b/libmedium/data/get_post_light/index.html @@ -1 +1 @@ -libmedium::data::get_post_light - Rust
\ No newline at end of file +libmedium::data::get_post_light - Rust
\ No newline at end of file diff --git a/libmedium/data/get_post_light/struct.GetPostLightPost.html b/libmedium/data/get_post_light/struct.GetPostLightPost.html index a145514..8a25f05 100644 --- a/libmedium/data/get_post_light/struct.GetPostLightPost.html +++ b/libmedium/data/get_post_light/struct.GetPostLightPost.html @@ -1,38 +1,12 @@ -GetPostLightPost in libmedium::data::get_post_light - Rust
pub struct GetPostLightPost {
-    pub unique_slug: String,
+GetPostLightPost in libmedium::data::get_post_light - Rust
pub struct GetPostLightPost {
+    pub unique_slug: String,
     pub creator: GetPostLightPostCreator,
-}

Fields

unique_slug: Stringcreator: GetPostLightPostCreator

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

unique_slug: Stringcreator: GetPostLightPostCreator

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html b/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html index 9035ab4..a4c740d 100644 --- a/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html +++ b/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html @@ -1,37 +1,11 @@ -GetPostLightPostCreator in libmedium::data::get_post_light - Rust
pub struct GetPostLightPostCreator {
-    pub username: String,
-}

Fields

username: String

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostLightPostCreator in libmedium::data::get_post_light - Rust
pub struct GetPostLightPostCreator {
+    pub username: String,
+}

Fields

username: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post_light/struct.ResponseData.html b/libmedium/data/get_post_light/struct.ResponseData.html index d209fc4..cccad9e 100644 --- a/libmedium/data/get_post_light/struct.ResponseData.html +++ b/libmedium/data/get_post_light/struct.ResponseData.html @@ -1,37 +1,11 @@ -ResponseData in libmedium::data::get_post_light - Rust
pub struct ResponseData {
-    pub post: Option<GetPostLightPost>,
-}

Fields

post: Option<GetPostLightPost>

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+ResponseData in libmedium::data::get_post_light - Rust
pub struct ResponseData {
+    pub post: Option<GetPostLightPost>,
+}

Fields

post: Option<GetPostLightPost>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post_light/struct.Variables.html b/libmedium/data/get_post_light/struct.Variables.html index 61ced54..8a282f4 100644 --- a/libmedium/data/get_post_light/struct.Variables.html +++ b/libmedium/data/get_post_light/struct.Variables.html @@ -1,30 +1,11 @@ -Variables in libmedium::data::get_post_light - Rust
pub struct Variables {
-    pub id: String,
-}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+Variables in libmedium::data::get_post_light - Rust
pub struct Variables {
+    pub id: String,
+}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.Boolean.html b/libmedium/data/get_post_light/type.Boolean.html index 190e2fd..b1a0744 100644 --- a/libmedium/data/get_post_light/type.Boolean.html +++ b/libmedium/data/get_post_light/type.Boolean.html @@ -1 +1 @@ -Boolean in libmedium::data::get_post_light - Rust
type Boolean = bool;
\ No newline at end of file +Boolean in libmedium::data::get_post_light - Rust
type Boolean = bool;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.Float.html b/libmedium/data/get_post_light/type.Float.html index d082355..a9d7d38 100644 --- a/libmedium/data/get_post_light/type.Float.html +++ b/libmedium/data/get_post_light/type.Float.html @@ -1 +1 @@ -Float in libmedium::data::get_post_light - Rust
type Float = f64;
\ No newline at end of file +Float in libmedium::data::get_post_light - Rust
type Float = f64;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.ID.html b/libmedium/data/get_post_light/type.ID.html index c07b0c1..8e2ea39 100644 --- a/libmedium/data/get_post_light/type.ID.html +++ b/libmedium/data/get_post_light/type.ID.html @@ -1 +1 @@ -ID in libmedium::data::get_post_light - Rust
type ID = String;
\ No newline at end of file +ID in libmedium::data::get_post_light - Rust
type ID = String;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.Int.html b/libmedium/data/get_post_light/type.Int.html index 817eb8e..854bba4 100644 --- a/libmedium/data/get_post_light/type.Int.html +++ b/libmedium/data/get_post_light/type.Int.html @@ -1 +1 @@ -Int in libmedium::data::get_post_light - Rust
type Int = i64;
\ No newline at end of file +Int in libmedium::data::get_post_light - Rust
type Int = i64;
\ No newline at end of file diff --git a/libmedium/data/index.html b/libmedium/data/index.html index 47529f5..6bfce0b 100644 --- a/libmedium/data/index.html +++ b/libmedium/data/index.html @@ -1 +1 @@ -libmedium::data - Rust
\ No newline at end of file +libmedium::data - Rust
\ No newline at end of file diff --git a/libmedium/data/struct.Data.html b/libmedium/data/struct.Data.html index b43d278..4f8a8c7 100644 --- a/libmedium/data/struct.Data.html +++ b/libmedium/data/struct.Data.html @@ -1,37 +1,14 @@ -Data in libmedium::data - Rust
pub struct Data {
+Data in libmedium::data - Rust
pub struct Data {
     pub client: Client,
     cache: Db,
     pub posts: Tree,
     pub gists: Tree,
-}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

source

pub async fn get_post(&self, id: &str) -> GetPostPost

source

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

source

pub async fn get_post(&self, id: &str) -> GetPostPost

source

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/struct.GetPost.html b/libmedium/data/struct.GetPost.html index a21f112..0398c5a 100644 --- a/libmedium/data/struct.GetPost.html +++ b/libmedium/data/struct.GetPost.html @@ -1,30 +1,9 @@ -GetPost in libmedium::data - Rust
pub struct GetPost;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.

-

The top-level shape of the response data (the data field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.

-

Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPost in libmedium::data - Rust
pub struct GetPost;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.
The top-level shape of the response data (the data field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.
Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/struct.GetPostLight.html b/libmedium/data/struct.GetPostLight.html index af776ee..d50cce4 100644 --- a/libmedium/data/struct.GetPostLight.html +++ b/libmedium/data/struct.GetPostLight.html @@ -1,30 +1,9 @@ -GetPostLight in libmedium::data - Rust
pub struct GetPostLight;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.

-

The top-level shape of the response data (the data field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.

-

Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GetPostLight in libmedium::data - Rust
pub struct GetPostLight;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.
The top-level shape of the response data (the data field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.
Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/struct.GistContent.html b/libmedium/data/struct.GistContent.html index b40aaa2..6cd0f86 100644 --- a/libmedium/data/struct.GistContent.html +++ b/libmedium/data/struct.GistContent.html @@ -1,32 +1,12 @@ -GistContent in libmedium::data - Rust
pub struct GistContent {
-    pub files: Vec<GistFile>,
-    pub html_url: String,
-}

Fields

files: Vec<GistFile>html_url: String

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GistContent in libmedium::data - Rust
pub struct GistContent {
+    pub files: Vec<GistFile>,
+    pub html_url: String,
+}

Fields

files: Vec<GistFile>html_url: String

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/struct.GistFile.html b/libmedium/data/struct.GistFile.html index a63a9da..4296735 100644 --- a/libmedium/data/struct.GistFile.html +++ b/libmedium/data/struct.GistFile.html @@ -1,39 +1,14 @@ -GistFile in libmedium::data - Rust
pub struct GistFile {
-    pub file_name: String,
-    pub content: String,
-    pub language: String,
-    pub raw_url: String,
-}

Fields

file_name: Stringcontent: Stringlanguage: Stringraw_url: String

Implementations

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+GistFile in libmedium::data - Rust
pub struct GistFile {
+    pub file_name: String,
+    pub content: String,
+    pub language: String,
+    pub raw_url: String,
+}

Fields

file_name: Stringcontent: Stringlanguage: Stringraw_url: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/struct.PostUrl.html b/libmedium/data/struct.PostUrl.html index 173418a..ed8c801 100644 --- a/libmedium/data/struct.PostUrl.html +++ b/libmedium/data/struct.PostUrl.html @@ -1,36 +1,12 @@ -PostUrl in libmedium::data - Rust
pub struct PostUrl {
-    pub slug: String,
-    pub username: String,
-}

Fields

slug: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+PostUrl in libmedium::data - Rust
pub struct PostUrl {
+    pub slug: String,
+    pub username: String,
+}

Fields

slug: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/data/type.AppData.html b/libmedium/data/type.AppData.html index 570b21f..ed507e7 100644 --- a/libmedium/data/type.AppData.html +++ b/libmedium/data/type.AppData.html @@ -1 +1 @@ -AppData in libmedium::data - Rust

Type Definition libmedium::data::AppData

source · []
pub type AppData = Data<Data>;
\ No newline at end of file +AppData in libmedium::data - Rust

Type Definition libmedium::data::AppData

source · []
pub type AppData = Data<Data>;
\ No newline at end of file diff --git a/libmedium/data/type.PostResp.html b/libmedium/data/type.PostResp.html index 1705857..287d683 100644 --- a/libmedium/data/type.PostResp.html +++ b/libmedium/data/type.PostResp.html @@ -1 +1 @@ -PostResp in libmedium::data - Rust

Type Definition libmedium::data::PostResp

source · []
pub type PostResp = GetPostPost;
\ No newline at end of file +PostResp in libmedium::data - Rust

Type Definition libmedium::data::PostResp

source · []
pub type PostResp = GetPostPost;
\ No newline at end of file diff --git a/libmedium/fn.get_json_err.html b/libmedium/fn.get_json_err.html index b1f6285..250d9d5 100644 --- a/libmedium/fn.get_json_err.html +++ b/libmedium/fn.get_json_err.html @@ -1 +1 @@ -get_json_err in libmedium - Rust
pub fn get_json_err() -> JsonConfig
\ No newline at end of file +get_json_err in libmedium - Rust
pub fn get_json_err() -> JsonConfig
\ No newline at end of file diff --git a/libmedium/fn.main.html b/libmedium/fn.main.html index 08a88a0..6ac33e2 100644 --- a/libmedium/fn.main.html +++ b/libmedium/fn.main.html @@ -1 +1 @@ -main in libmedium - Rust
pub(crate) fn main() -> Result<()>
\ No newline at end of file +main in libmedium - Rust
pub(crate) fn main() -> Result<()>
\ No newline at end of file diff --git a/libmedium/index.html b/libmedium/index.html index 6306095..79cc1f0 100644 --- a/libmedium/index.html +++ b/libmedium/index.html @@ -1 +1 @@ -libmedium - Rust
\ No newline at end of file +libmedium - Rust
\ No newline at end of file diff --git a/libmedium/meta/fn.services.html b/libmedium/meta/fn.services.html index c2c6fe9..801627e 100644 --- a/libmedium/meta/fn.services.html +++ b/libmedium/meta/fn.services.html @@ -1 +1 @@ -services in libmedium::meta - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in libmedium::meta - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/libmedium/meta/index.html b/libmedium/meta/index.html index 9fa5a83..90f591d 100644 --- a/libmedium/meta/index.html +++ b/libmedium/meta/index.html @@ -1,2 +1 @@ -libmedium::meta - Rust
\ No newline at end of file +libmedium::meta - Rust
\ No newline at end of file diff --git a/libmedium/meta/routes/index.html b/libmedium/meta/routes/index.html index 2c07339..1a529b4 100644 --- a/libmedium/meta/routes/index.html +++ b/libmedium/meta/routes/index.html @@ -1 +1 @@ -libmedium::meta::routes - Rust
\ No newline at end of file +libmedium::meta::routes - Rust
\ No newline at end of file diff --git a/libmedium/meta/routes/struct.Meta.html b/libmedium/meta/routes/struct.Meta.html index b79dc62..bcb57ff 100644 --- a/libmedium/meta/routes/struct.Meta.html +++ b/libmedium/meta/routes/struct.Meta.html @@ -1,30 +1,12 @@ -Meta in libmedium::meta::routes - Rust
pub struct Meta {
-    pub build_details: &'static str,
-    pub health: &'static str,
-}

Fields

build_details: &'static strhealth: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+Meta in libmedium::meta::routes - Rust
pub struct Meta {
+    pub build_details: &'static str,
+    pub health: &'static str,
+}

Fields

build_details: &'static strhealth: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/meta/struct.BuildDetails.html b/libmedium/meta/struct.BuildDetails.html index 8506599..2dc7b21 100644 --- a/libmedium/meta/struct.BuildDetails.html +++ b/libmedium/meta/struct.BuildDetails.html @@ -1,38 +1,12 @@ -BuildDetails in libmedium::meta - Rust
pub struct BuildDetails {
-    pub version: &'static str,
-    pub git_commit_hash: &'static str,
-}

Fields

version: &'static strgit_commit_hash: &'static str

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+BuildDetails in libmedium::meta - Rust
pub struct BuildDetails {
+    pub version: &'static str,
+    pub git_commit_hash: &'static str,
+}

Fields

version: &'static strgit_commit_hash: &'static str

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/meta/struct.build_details.html b/libmedium/meta/struct.build_details.html index 47f4707..c84871e 100644 --- a/libmedium/meta/struct.build_details.html +++ b/libmedium/meta/struct.build_details.html @@ -1,28 +1,10 @@ -build_details in libmedium::meta - Rust
pub struct build_details;
Expand description

emmits build details of the bninary

-

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+build_details in libmedium::meta - Rust
pub struct build_details;
Expand description

emmits build details of the bninary

+

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/post/enum.PostitionType.html b/libmedium/post/enum.PostitionType.html index 215a320..1aa4e49 100644 --- a/libmedium/post/enum.PostitionType.html +++ b/libmedium/post/enum.PostitionType.html @@ -1,34 +1,14 @@ -PostitionType in libmedium::post - Rust
enum PostitionType {
+PostitionType in libmedium::post - Rust
enum PostitionType {
     Start,
     End,
-}

Variants

Start

End

Trait Implementations

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Compare self to key and return true if they are equal.

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Variants

Start

End

Trait Implementations

This method tests for self and other values to be equal, and is used +by ==. Read more
This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/post/fn.apply_markup.html b/libmedium/post/fn.apply_markup.html index 1fafdcb..c08ce5f 100644 --- a/libmedium/post/fn.apply_markup.html +++ b/libmedium/post/fn.apply_markup.html @@ -1 +1 @@ -apply_markup in libmedium::post - Rust
pub fn apply_markup<'b>(
    data: &GetPostPost,
    gists: &'b Option<Vec<(String, GistContent)>>
) -> Vec<String>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
\ No newline at end of file +apply_markup in libmedium::post - Rust
pub fn apply_markup<'b>(
    data: &GetPostPost,
    gists: &'b Option<Vec<(String, GistContent)>>
) -> Vec<String>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
    A: Allocator,
\ No newline at end of file diff --git a/libmedium/post/index.html b/libmedium/post/index.html index fed5cad..2af50c0 100644 --- a/libmedium/post/index.html +++ b/libmedium/post/index.html @@ -1 +1 @@ -libmedium::post - Rust
\ No newline at end of file +libmedium::post - Rust
\ No newline at end of file diff --git a/libmedium/post/struct.Markup.html b/libmedium/post/struct.Markup.html index 80bd9e9..9c318fd 100644 --- a/libmedium/post/struct.Markup.html +++ b/libmedium/post/struct.Markup.html @@ -1,32 +1,14 @@ -Markup in libmedium::post - Rust
struct Markup<'a, 'b> {
+Markup in libmedium::post - Rust
struct Markup<'a, 'b> {
     markup: &'a GetPostPostContentBodyModelParagraphsMarkups,
     p: &'a GetPostPostContentBodyModelParagraphs,
     pos_type: PostitionType,
-    gists: &'b Option<Vec<(String, GistContent)>>,
-}

Fields

markup: &'a GetPostPostContentBodyModelParagraphsMarkupsp: &'a GetPostPostContentBodyModelParagraphspos_type: PostitionTypegists: &'b Option<Vec<(String, GistContent)>>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+ gists: &'b Option<Vec<(String, GistContent)>>, +}

Fields

markup: &'a GetPostPostContentBodyModelParagraphsMarkupsp: &'a GetPostPostContentBodyModelParagraphspos_type: PostitionTypegists: &'b Option<Vec<(String, GistContent)>>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/post/struct.PositionMap.html b/libmedium/post/struct.PositionMap.html index f2da642..bbe2dd0 100644 --- a/libmedium/post/struct.PositionMap.html +++ b/libmedium/post/struct.PositionMap.html @@ -1,31 +1,12 @@ -PositionMap in libmedium::post - Rust
struct PositionMap<'a, 'b> {
-    map: HashMap<i64, Vec<Markup<'a, 'b>>>,
-    arr: Vec<i64>,
-}

Fields

map: HashMap<i64, Vec<Markup<'a, 'b>>>arr: Vec<i64>

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+PositionMap in libmedium::post - Rust
struct PositionMap<'a, 'b> {
+    map: HashMap<i64, Vec<Markup<'a, 'b>>>,
+    arr: Vec<i64>,
+}

Fields

map: HashMap<i64, Vec<Markup<'a, 'b>>>arr: Vec<i64>

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/constant.CACHE_AGE.html b/libmedium/proxy/constant.CACHE_AGE.html index 57f05ba..217b10d 100644 --- a/libmedium/proxy/constant.CACHE_AGE.html +++ b/libmedium/proxy/constant.CACHE_AGE.html @@ -1 +1 @@ -CACHE_AGE in libmedium::proxy - Rust
const CACHE_AGE: u32 = _; // 86_400u32
\ No newline at end of file +CACHE_AGE in libmedium::proxy - Rust
const CACHE_AGE: u32 = _; // 86_400u32
\ No newline at end of file diff --git a/libmedium/proxy/constant.INDEX.html b/libmedium/proxy/constant.INDEX.html index c9f8bc3..cb03bd6 100644 --- a/libmedium/proxy/constant.INDEX.html +++ b/libmedium/proxy/constant.INDEX.html @@ -1 +1 @@ -INDEX in libmedium::proxy - Rust
const INDEX: &'static str = _;
\ No newline at end of file +INDEX in libmedium::proxy - Rust
const INDEX: &'static str = _;
\ No newline at end of file diff --git a/libmedium/proxy/fn.services.html b/libmedium/proxy/fn.services.html index bd9632d..719cb72 100644 --- a/libmedium/proxy/fn.services.html +++ b/libmedium/proxy/fn.services.html @@ -1 +1 @@ -services in libmedium::proxy - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in libmedium::proxy - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/libmedium/proxy/index.html b/libmedium/proxy/index.html index ba57ce1..aee3484 100644 --- a/libmedium/proxy/index.html +++ b/libmedium/proxy/index.html @@ -1 +1 @@ -libmedium::proxy - Rust
\ No newline at end of file +libmedium::proxy - Rust
\ No newline at end of file diff --git a/libmedium/proxy/routes/index.html b/libmedium/proxy/routes/index.html index 0c97a93..48229b9 100644 --- a/libmedium/proxy/routes/index.html +++ b/libmedium/proxy/routes/index.html @@ -1 +1 @@ -libmedium::proxy::routes - Rust
\ No newline at end of file +libmedium::proxy::routes - Rust
\ No newline at end of file diff --git a/libmedium/proxy/routes/struct.Proxy.html b/libmedium/proxy/routes/struct.Proxy.html index 1de078d..cdf401c 100644 --- a/libmedium/proxy/routes/struct.Proxy.html +++ b/libmedium/proxy/routes/struct.Proxy.html @@ -1,32 +1,14 @@ -Proxy in libmedium::proxy::routes - Rust
pub struct Proxy {
-    pub index: &'static str,
-    pub by_post_id: &'static str,
-    pub page: &'static str,
-    pub asset: &'static str,
-}

Fields

index: &'static strby_post_id: &'static strpage: &'static strasset: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+Proxy in libmedium::proxy::routes - Rust
pub struct Proxy {
+    pub index: &'static str,
+    pub by_post_id: &'static str,
+    pub page: &'static str,
+    pub asset: &'static str,
+}

Fields

index: &'static strby_post_id: &'static strpage: &'static strasset: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/struct.Post.html b/libmedium/proxy/struct.Post.html index e04be6a..33141be 100644 --- a/libmedium/proxy/struct.Post.html +++ b/libmedium/proxy/struct.Post.html @@ -1,37 +1,17 @@ -Post in libmedium::proxy - Rust
pub struct Post {
+Post in libmedium::proxy - Rust
pub struct Post {
     pub data: GetPostPost,
-    pub date: String,
-    pub preview_img: String,
-    pub reading_time: usize,
-    pub id: String,
-    pub gists: Option<Vec<(String, GistContent)>>,
-    pub paragraphs: Vec<String>,
-}

Fields

data: GetPostPostdate: Stringpreview_img: Stringreading_time: usizeid: Stringgists: Option<Vec<(String, GistContent)>>paragraphs: Vec<String>

Trait Implementations

source

impl TemplateOnce for Post

Render the template and return the rendering result as RenderResult Read more

-

Render the template and append the result to buf. Read more

-
source

impl Sealed for Post

Auto Trait Implementations

impl RefUnwindSafe for Post

impl Send for Post

impl Sync for Post

impl Unpin for Post

impl UnwindSafe for Post

Blanket Implementations

source

impl<T> Any for T where
    T: 'static + ?Sized

Gets the TypeId of self. Read more

-
source

impl<T> Borrow<T> for T where
    T: ?Sized

Immutably borrows from an owned value. Read more

-
source

impl<T> BorrowMut<T> for T where
    T: ?Sized

Mutably borrows from an owned value. Read more

-
source

impl<T> From<T> for T

Returns the argument unchanged.

-
source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-
source

impl<T, U> Into<U> for T where
    U: From<T>, 

Calls U::from(self).

+ pub date: String, + pub preview_img: String, + pub reading_time: usize, + pub id: String, + pub gists: Option<Vec<(String, GistContent)>>, + pub paragraphs: Vec<String>, +}

Fields

data: GetPostPostdate: Stringpreview_img: Stringreading_time: usizeid: Stringgists: Option<Vec<(String, GistContent)>>paragraphs: Vec<String>

Trait Implementations

source

impl TemplateOnce for Post

Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more
source

impl Sealed for Post

Auto Trait Implementations

impl RefUnwindSafe for Post

impl Send for Post

impl Sync for Post

impl Unpin for Post

impl UnwindSafe for Post

Blanket Implementations

source

impl<T> Any for Twhere
    T: 'static + ?Sized,

Gets the TypeId of self. Read more
source

impl<T> Borrow<T> for Twhere
    T: ?Sized,

Immutably borrows from an owned value. Read more
source

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

Mutably borrows from an owned value. Read more
source

impl<T> From<T> for T

Returns the argument unchanged.

+
source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source

impl<T, U> Into<U> for Twhere
    U: From<T>,

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

impl<T> Pointable for T

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-
source

impl<T> Same<T> for T

Should always be Self

-
source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

The type returned in the event of a conversion error.

-

Performs the conversion.

-
source

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

The type returned in the event of a conversion error.

-

Performs the conversion.

-

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+

impl<T> Pointable for T

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
source

impl<T> Same<T> for T

Should always be Self
source

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

The type returned in the event of a conversion error.
Performs the conversion.

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/struct.assets.html b/libmedium/proxy/struct.assets.html index af9cc8d..5fc67b9 100644 --- a/libmedium/proxy/struct.assets.html +++ b/libmedium/proxy/struct.assets.html @@ -1,27 +1,9 @@ -assets in libmedium::proxy - Rust
pub struct assets;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+assets in libmedium::proxy - Rust
pub struct assets;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/struct.by_post_id.html b/libmedium/proxy/struct.by_post_id.html index de7e5bf..3b11476 100644 --- a/libmedium/proxy/struct.by_post_id.html +++ b/libmedium/proxy/struct.by_post_id.html @@ -1,27 +1,9 @@ -by_post_id in libmedium::proxy - Rust
pub struct by_post_id;

Trait Implementations

source

impl HttpServiceFactory for by_post_id

Auto Trait Implementations

Blanket Implementations

source

impl<T> Any for T where
    T: 'static + ?Sized

Gets the TypeId of self. Read more

-
source

impl<T> Borrow<T> for T where
    T: ?Sized

Immutably borrows from an owned value. Read more

-
source

impl<T> BorrowMut<T> for T where
    T: ?Sized

Mutably borrows from an owned value. Read more

-
source

impl<T> From<T> for T

Returns the argument unchanged.

-
source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-
source

impl<T, U> Into<U> for T where
    U: From<T>, 

Calls U::from(self).

+by_post_id in libmedium::proxy - Rust
pub struct by_post_id;

Trait Implementations

source

impl HttpServiceFactory for by_post_id

Auto Trait Implementations

Blanket Implementations

source

impl<T> Any for Twhere
    T: 'static + ?Sized,

Gets the TypeId of self. Read more
source

impl<T> Borrow<T> for Twhere
    T: ?Sized,

Immutably borrows from an owned value. Read more
source

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

Mutably borrows from an owned value. Read more
source

impl<T> From<T> for T

Returns the argument unchanged.

+
source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source

impl<T, U> Into<U> for Twhere
    U: From<T>,

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

impl<T> Pointable for T

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-
source

impl<T> Same<T> for T

Should always be Self

-
source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

The type returned in the event of a conversion error.

-

Performs the conversion.

-
source

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

The type returned in the event of a conversion error.

-

Performs the conversion.

-

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+

impl<T> Pointable for T

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
source

impl<T> Same<T> for T

Should always be Self
source

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

The type returned in the event of a conversion error.
Performs the conversion.

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/struct.index.html b/libmedium/proxy/struct.index.html index b12b426..2c68d0b 100644 --- a/libmedium/proxy/struct.index.html +++ b/libmedium/proxy/struct.index.html @@ -1,27 +1,9 @@ -index in libmedium::proxy - Rust
pub struct index;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+index in libmedium::proxy - Rust
pub struct index;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/struct.page.html b/libmedium/proxy/struct.page.html index c82818f..3571c47 100644 --- a/libmedium/proxy/struct.page.html +++ b/libmedium/proxy/struct.page.html @@ -1,27 +1,9 @@ -page in libmedium::proxy - Rust
pub struct page;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+page in libmedium::proxy - Rust
pub struct page;

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/proxy/trait.StringUtils.html b/libmedium/proxy/trait.StringUtils.html index bfe7d47..6670665 100644 --- a/libmedium/proxy/trait.StringUtils.html +++ b/libmedium/proxy/trait.StringUtils.html @@ -1,4 +1,4 @@ -StringUtils in libmedium::proxy - Rust
pub trait StringUtils {
-    fn substring(&self, start: usize, len: usize) -> &str;
-    fn slice(&self, range: impl RangeBounds<usize>) -> &str;
-}

Required Methods

Implementations on Foreign Types

Implementors

\ No newline at end of file +StringUtils in libmedium::proxy - Rust
pub trait StringUtils {
+    fn substring(&self, start: usize, len: usize) -> &str;
+    fn slice(&self, range: impl RangeBounds<usize>) -> &str;
+}

Required Methods

Implementations on Foreign Types

Implementors

\ No newline at end of file diff --git a/libmedium/render_html/constant.STYLE.html b/libmedium/render_html/constant.STYLE.html index a377df2..7fce8ff 100644 --- a/libmedium/render_html/constant.STYLE.html +++ b/libmedium/render_html/constant.STYLE.html @@ -1,2 +1,2 @@ -STYLE in libmedium::render_html - Rust
pub const STYLE: &'static str = "
-    ";
\ No newline at end of file +STYLE in libmedium::render_html - Rust
pub const STYLE: &'static str = "
+    ";
\ No newline at end of file diff --git a/libmedium/render_html/constant.SYNTAX_SET.html b/libmedium/render_html/constant.SYNTAX_SET.html index 1a83daa..2bf84b2 100644 --- a/libmedium/render_html/constant.SYNTAX_SET.html +++ b/libmedium/render_html/constant.SYNTAX_SET.html @@ -1 +1 @@ -SYNTAX_SET in libmedium::render_html - Rust
pub(crate) const SYNTAX_SET: LocalKey<SyntaxSet>;
\ No newline at end of file +SYNTAX_SET in libmedium::render_html - Rust
pub(crate) const SYNTAX_SET: LocalKey<SyntaxSet>;
\ No newline at end of file diff --git a/libmedium/render_html/index.html b/libmedium/render_html/index.html index 8c00746..86fff0c 100644 --- a/libmedium/render_html/index.html +++ b/libmedium/render_html/index.html @@ -1 +1 @@ -libmedium::render_html - Rust
\ No newline at end of file +libmedium::render_html - Rust
\ No newline at end of file diff --git a/libmedium/render_html/struct.SourcegraphQuery.html b/libmedium/render_html/struct.SourcegraphQuery.html index b1517ce..87678fd 100644 --- a/libmedium/render_html/struct.SourcegraphQuery.html +++ b/libmedium/render_html/struct.SourcegraphQuery.html @@ -1,30 +1,12 @@ -SourcegraphQuery in libmedium::render_html - Rust
pub struct SourcegraphQuery<'a> {
-    pub filepath: &'a str,
-    pub code: &'a str,
-}

Fields

filepath: &'a strcode: &'a str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+SourcegraphQuery in libmedium::render_html - Rust
pub struct SourcegraphQuery<'a> {
+    pub filepath: &'a str,
+    pub code: &'a str,
+}

Fields

filepath: &'a strcode: &'a str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/render_html/trait.GenerateHTML.html b/libmedium/render_html/trait.GenerateHTML.html index 9213cfc..eb9f6f2 100644 --- a/libmedium/render_html/trait.GenerateHTML.html +++ b/libmedium/render_html/trait.GenerateHTML.html @@ -1,3 +1,3 @@ -GenerateHTML in libmedium::render_html - Rust
pub trait GenerateHTML {
+GenerateHTML in libmedium::render_html - Rust
pub trait GenerateHTML {
     fn generate(&mut self);
-}

Required Methods

Implementors

\ No newline at end of file +}

Required Methods

Implementors

\ No newline at end of file diff --git a/libmedium/routes/constant.ROUTES.html b/libmedium/routes/constant.ROUTES.html index c23af93..f1ce724 100644 --- a/libmedium/routes/constant.ROUTES.html +++ b/libmedium/routes/constant.ROUTES.html @@ -1 +1 @@ -ROUTES in libmedium::routes - Rust
pub const ROUTES: Routes;
\ No newline at end of file +ROUTES in libmedium::routes - Rust
pub const ROUTES: Routes;
\ No newline at end of file diff --git a/libmedium/routes/fn.services.html b/libmedium/routes/fn.services.html index e4c6b9e..26e2065 100644 --- a/libmedium/routes/fn.services.html +++ b/libmedium/routes/fn.services.html @@ -1 +1 @@ -services in libmedium::routes - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in libmedium::routes - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/libmedium/routes/index.html b/libmedium/routes/index.html index 971260f..91bd736 100644 --- a/libmedium/routes/index.html +++ b/libmedium/routes/index.html @@ -1 +1 @@ -libmedium::routes - Rust
\ No newline at end of file +libmedium::routes - Rust
\ No newline at end of file diff --git a/libmedium/routes/struct.Routes.html b/libmedium/routes/struct.Routes.html index 32f7a96..1edcf4b 100644 --- a/libmedium/routes/struct.Routes.html +++ b/libmedium/routes/struct.Routes.html @@ -1,30 +1,12 @@ -Routes in libmedium::routes - Rust
pub struct Routes {
+Routes in libmedium::routes - Rust
pub struct Routes {
     pub meta: Meta,
     pub proxy: Proxy,
-}

Fields

meta: Metaproxy: Proxy

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

meta: Metaproxy: Proxy

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/settings/fn.check_url.html b/libmedium/settings/fn.check_url.html index 3c5ab2f..3cc9af6 100644 --- a/libmedium/settings/fn.check_url.html +++ b/libmedium/settings/fn.check_url.html @@ -1 +1 @@ -check_url in libmedium::settings - Rust
fn check_url(s: &Config)
\ No newline at end of file +check_url in libmedium::settings - Rust
fn check_url(s: &Config)
\ No newline at end of file diff --git a/libmedium/settings/index.html b/libmedium/settings/index.html index 2fceb02..b2339b1 100644 --- a/libmedium/settings/index.html +++ b/libmedium/settings/index.html @@ -1 +1 @@ -libmedium::settings - Rust
\ No newline at end of file +libmedium::settings - Rust
\ No newline at end of file diff --git a/libmedium/settings/struct.Server.html b/libmedium/settings/struct.Server.html index 4831623..c2b4a7e 100644 --- a/libmedium/settings/struct.Server.html +++ b/libmedium/settings/struct.Server.html @@ -1,40 +1,15 @@ -Server in libmedium::settings - Rust
pub struct Server {
-    pub port: u32,
-    pub domain: String,
-    pub ip: String,
-    pub proxy_has_tls: bool,
-    pub workers: Option<usize>,
-}

Fields

port: u32domain: Stringip: Stringproxy_has_tls: boolworkers: Option<usize>

Implementations

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+Server in libmedium::settings - Rust
pub struct Server {
+    pub port: u32,
+    pub domain: String,
+    pub ip: String,
+    pub proxy_has_tls: bool,
+    pub workers: Option<usize>,
+}

Fields

port: u32domain: Stringip: Stringproxy_has_tls: boolworkers: Option<usize>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/settings/struct.Settings.html b/libmedium/settings/struct.Settings.html index c260217..c3c0280 100644 --- a/libmedium/settings/struct.Settings.html +++ b/libmedium/settings/struct.Settings.html @@ -1,39 +1,14 @@ -Settings in libmedium::settings - Rust
pub struct Settings {
-    pub debug: bool,
-    pub cache: Option<String>,
+Settings in libmedium::settings - Rust
pub struct Settings {
+    pub debug: bool,
+    pub cache: Option<String>,
     pub server: Server,
-    pub source_code: String,
-}

Fields

debug: boolcache: Option<String>server: Serversource_code: String

Implementations

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+ pub source_code: String, +}

Fields

debug: boolcache: Option<String>server: Serversource_code: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/struct.Data.html b/libmedium/struct.Data.html index d1d03b0..1513aca 100644 --- a/libmedium/struct.Data.html +++ b/libmedium/struct.Data.html @@ -1,37 +1,14 @@ -Data in libmedium - Rust
pub struct Data {
+Data in libmedium - Rust
pub struct Data {
     pub client: Client,
     cache: Db,
     pub posts: Tree,
     pub gists: Tree,
-}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

source

pub async fn get_post(&self, id: &str) -> GetPostPost

source

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

source

pub async fn get_post(&self, id: &str) -> GetPostPost

source

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/struct.SETTINGS.html b/libmedium/struct.SETTINGS.html index 9959896..cd419e3 100644 --- a/libmedium/struct.SETTINGS.html +++ b/libmedium/struct.SETTINGS.html @@ -1,31 +1,11 @@ -SETTINGS in libmedium - Rust
pub struct SETTINGS {
-    pub(crate) __private_field: (),
-}

Fields

__private_field: ()

Trait Implementations

The resulting type after dereferencing.

-

Dereferences the value.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+SETTINGS in libmedium - Rust
pub struct SETTINGS {
+    pub(crate) __private_field: (),
+}

Fields

__private_field: ()

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/struct.Settings.html b/libmedium/struct.Settings.html index c4c2a64..8385acd 100644 --- a/libmedium/struct.Settings.html +++ b/libmedium/struct.Settings.html @@ -1,39 +1,14 @@ -Settings in libmedium - Rust
pub struct Settings {
-    pub debug: bool,
-    pub cache: Option<String>,
+Settings in libmedium - Rust
pub struct Settings {
+    pub debug: bool,
+    pub cache: Option<String>,
     pub server: Server,
-    pub source_code: String,
-}

Fields

debug: boolcache: Option<String>server: Serversource_code: String

Implementations

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more

-

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

-

Calls U::from(self).

+ pub source_code: String, +}

Fields

debug: boolcache: Option<String>server: Serversource_code: String

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+
Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
Instruments this type with the current Span, returning an +Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The alignment of pointer.

-

The type for initializers.

-

Initializes a with the given initializer. Read more

-

Dereferences the given pointer. Read more

-

Mutably dereferences the given pointer. Read more

-

Drops the object pointed to by the given pointer. Read more

-

Should always be Self

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more

-

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more

-
\ No newline at end of file +From<T> for U chooses to do.

+
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/libmedium/type.AppData.html b/libmedium/type.AppData.html index 9c16f29..6485bee 100644 --- a/libmedium/type.AppData.html +++ b/libmedium/type.AppData.html @@ -1 +1 @@ -AppData in libmedium - Rust

Type Definition libmedium::AppData

source · []
pub type AppData = Data<Data>;
\ No newline at end of file +AppData in libmedium - Rust

Type Definition libmedium::AppData

source · []
pub type AppData = Data<Data>;
\ No newline at end of file diff --git a/light.css b/light.css index a71085b..e5e394d 100644 --- a/light.css +++ b/light.css @@ -1 +1 @@ -:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}.in-band{background-color:white;}.rust-logo{}.sidebar .current,.sidebar a:hover{background-color:#fff;}.line-numbers span{color:#c67e2d;}.line-numbers .line-highlighted{background-color:#FDFFD3 !important;}.docblock table td,.docblock table th{border-color:#ddd;}.search-results a:hover{background-color:#ddd;}.search-results a:focus{color:#000 !important;background-color:#ccc;}.search-results a:focus span{color:#000 !important;}a.result-trait:focus{background-color:#c7b6ff;}a.result-traitalias:focus{background-color:#c7b6ff;}a.result-mod:focus,a.result-externcrate:focus{background-color:#afc6e4;}a.result-enum:focus{background-color:#e7b1a0;}a.result-struct:focus{background-color:#e7b1a0;}a.result-union:focus{background-color:#e7b1a0;}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{background-color:#c6afb3;}a.result-type:focus{background-color:#e7b1a0;}a.result-associatedtype:focus{background-color:#afc6e4;}a.result-foreigntype:focus{background-color:#e7b1a0;}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{background-color:#8ce488;}a.result-constant:focus,a.result-static:focus{background-color:#afc6e4;}a.result-primitive:focus{background-color:#e7b1a0;}a.result-keyword:focus{background-color:#afc6e4;}.content .item-info::before{color:#ccc;}.content span.enum,.content a.enum,.block a.current.enum{color:#AD378A;}.content span.struct,.content a.struct,.block a.current.struct{color:#AD378A;}.content span.type,.content a.type,.block a.current.type{color:#AD378A;}.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype{color:#3873AD;}.content span.associatedtype,.content a.associatedtype,.block a.current.associatedtype{color:#3873AD;}.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro{color:#068000;}.content span.union,.content a.union,.block a.current.union{color:#AD378A;}.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static{color:#3873AD;}.content span.primitive,.content a.primitive,.block a.current.primitive{color:#AD378A;}.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod{color:#3873AD;}.content span.trait,.content a.trait,.block a.current.trait{color:#6E4FC9;}.content span.traitalias,.content a.traitalias,.block a.current.traitalias{color:#5137AD;}.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname{color:#AD7C37;}.content span.keyword,.content a.keyword,.block a.current.keyword{color:#3873AD;}.sidebar a{color:#356da4;}.sidebar a.current.enum{color:#a63283;}.sidebar a.current.struct{color:#a63283;}.sidebar a.current.type{color:#a63283;}.sidebar a.current.associatedtype{color:#356da4;}.sidebar a.current.foreigntype{color:#356da4;}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{color:#067901;}.sidebar a.current.union{color:#a63283;}.sidebar a.current.constant .sidebar a.current.static{color:#356da4;}.sidebar a.current.primitive{color:#a63283;}.sidebar a.current.externcrate .sidebar a.current.mod{color:#356da4;}.sidebar a.current.trait{color:#6849c3;}.sidebar a.current.traitalias{color:#4b349e;}.sidebar a.current.fn,.sidebar a.current.method,.sidebar a.current.tymethod{color:#a67736;}.sidebar a.current.keyword{color:#356da4;}nav.main .current{border-top-color:#000;border-bottom-color:#000;}nav.main .separator{border:1px solid #000;}a{color:#3873AD;}body.source .example-wrap pre.rust a{background:#eee;}details.rustdoc-toggle>summary.hideme>span,details.rustdoc-toggle>summary::before{color:#999;}#crate-search,.search-input{background-color:white;border-color:#e0e0e0;}#crate-search{border-color:#e0e0e0 !important;}.search-input:focus{border-color:#66afe9;}.stab.empty-impl{background:#FFF5D6;border-color:#FFC600;}.stab.unstable{background:#FFF5D6;border-color:#FFC600;}.stab.deprecated{background:#ffc4c4;border-color:#db7b7b;}.stab.must_implement{background:#F3DFFF;border-color:#b07bdb;}.stab.portability{background:#F3DFFF;border-color:#b07bdb;}.stab.portability>code{background:none;}.rightside,.out-of-band{color:grey;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#8959A8;}pre.rust .kw-2,pre.rust .prelude-ty{color:#4271AE;}pre.rust .number,pre.rust .string{color:#718C00;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident{color:#C82829;}pre.rust .comment{color:#8E908C;}pre.rust .doccomment{color:#4D4D4C;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#B76514;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#c7c7c7;}a.test-arrow{color:#f5f5f5;background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}.toggle-label,.code-attribute{color:#999;}:target{background:#FDFFD3;border-right:3px solid #AD7C37;}pre.compile_fail{border-left:2px solid rgba(255,0,0,.5);}pre.compile_fail:hover,.information:hover+pre.compile_fail{border-left:2px solid #f00;}pre.should_panic{border-left:2px solid rgba(255,0,0,.5);}pre.should_panic:hover,.information:hover+pre.should_panic{border-left:2px solid #f00;}pre.ignore{border-left:2px solid rgba(255,142,0,.6);}pre.ignore:hover,.information:hover+pre.ignore{border-left:2px solid #ff9200;}.tooltip.compile_fail{color:rgba(255,0,0,.5);}.information>.compile_fail:hover{color:#f00;}.tooltip.should_panic{color:rgba(255,0,0,.5);}.information>.should_panic:hover{color:#f00;}.tooltip.ignore{color:rgba(255,142,0,.6);}.information>.ignore:hover{color:#ff9200;}.search-failed a{color:#3873AD;}.tooltip::after{background-color:#000;color:#fff;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#eee;border-color:#999;}.notable-traits-tooltiptext .notable{border-bottom-color:#DDDDDD;}#titles>button:not(.selected){background-color:#e6e6e6;border-top-color:#e6e6e6;}#titles>button:hover,#titles>button.selected{background-color:#ffffff;border-top-color:#0089ff;}#titles>button>div.count{color:#888;}@media (max-width:700px){.sidebar-elems{border-right-color:#000;}}kbd{color:#000;background-color:#fafbfc;border-color:#d1d5da;border-bottom-color:#c6cbd1;box-shadow:inset 0 -1px 0 #c6cbd1;}#settings-menu>a,#help-button>button{border-color:#e0e0e0;background-color:#fff;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#717171;}.popover,.popover::before,#help-button span.top,#help-button span.bottom{border-color:#DDDDDD;}#copy-path{color:#999;}#copy-path>img{filter:invert(50%);}#copy-path:hover>img{filter:invert(35%);}#theme-choices{border-color:#ccc;background-color:#fff;}#theme-choices>button:not(:first-child){border-top-color:#e0e0e0;}#theme-choices>button:hover,#theme-choices>button:focus{background-color:#eee;}.search-results .result-name span.alias{color:#000;}.search-results .result-name span.grey{color:#999;}#source-sidebar>.title{border-bottom-color:#ccc;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#E0E0E0;}#source-sidebar div.files>a.selected{background-color:#fff;}.scraped-example-list .scrape-help{border-color:#555;color:#333;}.scraped-example-list .scrape-help:hover{border-color:black;color:black;}.more-examples-toggle summary,.more-examples-toggle .hide-more{color:#999;}.scraped-example .example-wrap .rust span.highlight{background:#fcffd6;}.scraped-example .example-wrap .rust span.highlight.focus{background:#f6fdb0;}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,0));}.toggle-line-inner{background:#ccc;}.toggle-line:hover .toggle-line-inner{background:#999;} \ No newline at end of file +:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;}.slider{background-color:#ccc;}.slider:before{background-color:white;}input:focus+.slider{box-shadow:0 0 0 2px #0a84ff,0 0 0 6px rgba(10,132,255,0.3);}.rust-logo{}.sidebar .current,.sidebar a:hover{background-color:#fff;}.line-numbers span{color:#c67e2d;}.line-numbers .line-highlighted{background-color:#FDFFD3 !important;}.search-results a:hover{background-color:#ddd;}.search-results a:focus{color:#000 !important;background-color:#ccc;}.search-results a:focus span{color:#000 !important;}a.result-trait:focus{background-color:#c7b6ff;}a.result-traitalias:focus{background-color:#c7b6ff;}a.result-mod:focus,a.result-externcrate:focus{background-color:#afc6e4;}a.result-enum:focus{background-color:#e7b1a0;}a.result-struct:focus{background-color:#e7b1a0;}a.result-union:focus{background-color:#e7b1a0;}a.result-fn:focus,a.result-method:focus,a.result-tymethod:focus{background-color:#c6afb3;}a.result-type:focus{background-color:#e7b1a0;}a.result-associatedtype:focus{background-color:#afc6e4;}a.result-foreigntype:focus{background-color:#e7b1a0;}a.result-attr:focus,a.result-derive:focus,a.result-macro:focus{background-color:#8ce488;}a.result-constant:focus,a.result-static:focus{background-color:#afc6e4;}a.result-primitive:focus{background-color:#e7b1a0;}a.result-keyword:focus{background-color:#afc6e4;}.content .item-info::before{color:#ccc;}.sidebar a{color:#356da4;}.sidebar a.current.enum{color:#a63283;}.sidebar a.current.struct{color:#a63283;}.sidebar a.current.type{color:#a63283;}.sidebar a.current.foreigntype{color:#356da4;}.sidebar a.current.attr,.sidebar a.current.derive,.sidebar a.current.macro{color:#067901;}.sidebar a.current.union{color:#a63283;}.sidebar a.current.constant .sidebar a.current.static{color:#356da4;}.sidebar a.current.primitive{color:#a63283;}.sidebar a.current.trait{color:#6849c3;}.sidebar a.current.traitalias{color:#4b349e;}.sidebar a.current.fn{color:#a67736;}.sidebar a.current.keyword{color:#356da4;}body.source .example-wrap pre.rust a{background:#eee;}#crate-search-div::after{filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);}#crate-search:hover,#crate-search:focus{border-color:#717171 !important;}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);}.stab{background:#FFF5D6;border-color:#FFC600;}.stab.portability>code{background:none;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#8959A8;}pre.rust .kw-2,pre.rust .prelude-ty{color:#4271AE;}pre.rust .number,pre.rust .string{color:#718C00;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute{color:#C82829;}pre.rust .comment{color:#8E908C;}pre.rust .doccomment{color:#4D4D4C;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#B76514;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#c7c7c7;}a.test-arrow{color:#f5f5f5;background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}:target{background:#FDFFD3;border-right:3px solid #AD7C37;}.search-failed a{color:#3873AD;}.tooltip::after{background-color:#000;color:#fff;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#eee;}#titles>button:not(.selected){background-color:#e6e6e6;border-top-color:#e6e6e6;}#titles>button:hover,#titles>button.selected{background-color:#ffffff;border-top-color:#0089ff;}#titles>button>div.count{color:#888;}kbd{color:#000;background-color:#fafbfc;box-shadow:inset 0 -1px 0 #c6cbd1;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>button:hover,#help-button>button:focus{border-color:#717171;}.search-results .result-name span.alias{color:#000;}.search-results .result-name span.grey{color:#999;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:#E0E0E0;}#source-sidebar div.files>a.selected{background-color:#fff;}.scraped-example-list .scrape-help{border-color:#555;color:#333;}.scraped-example-list .scrape-help:hover{border-color:black;color:black;}.scraped-example .example-wrap .rust span.highlight{background:#fcffd6;}.scraped-example .example-wrap .rust span.highlight.focus{background:#f6fdb0;}.scraped-example:not(.expanded) .code-wrapper:before{background:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}.scraped-example:not(.expanded) .code-wrapper:after{background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,0));}.toggle-line-inner{background:#ccc;}.toggle-line:hover .toggle-line-inner{background:#999;} \ No newline at end of file diff --git a/main.js b/main.js index c2141ac..2981663 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -"use strict";function getVar(name){const el=document.getElementById("rustdoc-vars");if(el){return el.attributes["data-"+name].value}else{return null}}function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}(function(){window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate")}());function setMobileTopbar(){const mobileLocationTitle=document.querySelector(".mobile-topbar h2.location");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileLocationTitle&&locationTitle){mobileLocationTitle.innerHTML=locationTitle.innerHTML}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function loadCss(cssFileName){const link=document.createElement("link");link.href=resourcePath(cssFileName,".css");link.type="text/css";link.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(link)}(function(){function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{addClass(getSettingsButton(),"rotate");event.preventDefault();loadCss("settings");loadScript(resourcePath("settings",".js"))};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},hideResults:()=>{switchDisplayedElement(null);document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(resourcePath("search",".js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search);loadSearch()}},};function getPageId(){if(window.location.hash){const tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}expandSection(savedHash.slice(1))}}function onHashChange(ev){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown");handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();switchDisplayedElement(null);if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}ev.preventDefault();searchState.defocus();window.hidePopoverMenus()}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":case"-":ev.preventDefault();toggleAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const div=document.createElement("div");div.className="block "+shortty;const h3=document.createElement("h3");h3.innerHTML=`${longty}`;div.appendChild(h3);const ul=document.createElement("ul");for(const item of filtered){const name=item[0];const desc=item[1];let klass=shortty;let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();if(path===current_page){klass+=" current"}const link=document.createElement("a");link.href=path;link.title=desc;link.className=klass;link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}div.appendChild(ul);sidebar.appendChild(div)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Definitions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector("h1.fqn > .in-band > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const ignoreExternCrates=document.querySelector("script[data-ignore-extern-crates]").getAttribute("data-ignore-extern-crates");for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.indexOf(lib)!==-1){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct.synthetic?synthetic_implementors:implementors;if(struct.synthetic){for(const struct_type of struct.types){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct.text;addClass(code,"code-header");addClass(code,"in-band");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&href.indexOf("http")!==0){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const div=document.createElement("div");div.className="block crate";div.innerHTML="

Crates

";const ul=document.createElement("ul");div.appendChild(ul);for(const crate of window.ALL_CRATES){let klass="crate";if(window.rootPath!=="./"&&crate===window.currentCrate){klass+=" current"}const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.className=klass;link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(div)}function labelForToggleButton(sectionIsCollapsed){if(sectionIsCollapsed){return"+"}return"\u2212"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}let sectionIsCollapsed=false;if(hasClass(innerToggle,"will-expand")){removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(!hasClass(e,"type-contents-toggle")){e.open=true}});innerToggle.title="collapse all docs"}else{addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});sectionIsCollapsed=true;innerToggle.title="expand all docs"}innerToggle.children[0].innerText=labelForToggleButton(sectionIsCollapsed)}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}});const pageId=getPageId();if(pageId!==null){expandSection(pageId)}}());(function(){let lineNumbersFunc=()=>{};if(getSettingValue("line-numbers")==="true"){lineNumbersFunc=x=>{const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{if(hasClass(e,"compile_fail")){e.addEventListener("mouseover",function(){this.parentElement.previousElementSibling.childNodes[0].style.color="#f00"});e.addEventListener("mouseout",function(){this.parentElement.previousElementSibling.childNodes[0].style.color=""})}else if(hasClass(e,"ignore")){e.addEventListener("mouseover",function(){this.parentElement.previousElementSibling.childNodes[0].style.color="#ff9200"});e.addEventListener("mouseout",function(){this.parentElement.previousElementSibling.childNodes[0].style.color=""})}lineNumbersFunc(e)})}());function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}function handleClick(id,f){const elem=document.getElementById(id);if(elem){elem.addEventListener("click",f)}}handleClick(MAIN_ID,()=>{hideSidebar()});onEachLazy(document.getElementsByTagName("a"),el=>{if(el.hash){el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})}});onEachLazy(document.querySelectorAll(".rustdoc-toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});onEachLazy(document.getElementsByClassName("notable-traits"),e=>{e.onclick=function(){this.getElementsByClassName("notable-traits-tooltiptext")[0].classList.toggle("force-tooltip")}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){addClass(sidebar,"shown")}else{removeClass(sidebar,"shown")}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");book_info.className="top";book_info.innerHTML="You can find more information in \ +"use strict";function getVar(name){const el=document.getElementById("rustdoc-vars");if(el){return el.attributes["data-"+name].value}else{return null}}function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}(function(){window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate")}());function setMobileTopbar(){const mobileLocationTitle=document.querySelector(".mobile-topbar h2.location");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileLocationTitle&&locationTitle){mobileLocationTitle.innerHTML=locationTitle.innerHTML}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function loadCss(cssFileName){const link=document.createElement("link");link.href=resourcePath(cssFileName,".css");link.type="text/css";link.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(link)}(function(){function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{addClass(getSettingsButton(),"rotate");event.preventDefault();loadCss("settings");loadScript(resourcePath("settings",".js"))};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},hideResults:()=>{switchDisplayedElement(null);document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(resourcePath("search",".js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search);loadSearch()}},};function getPageId(){if(window.location.hash){const tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}expandSection(savedHash.slice(1))}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();switchDisplayedElement(null);if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}ev.preventDefault();searchState.defocus();window.hidePopoverMenus()}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":case"-":ev.preventDefault();toggleAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const div=document.createElement("div");div.className="block "+shortty;const h3=document.createElement("h3");h3.innerHTML=`${longty}`;div.appendChild(h3);const ul=document.createElement("ul");for(const item of filtered){const name=item[0];const desc=item[1];let klass=shortty;let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();if(path===current_page){klass+=" current"}const link=document.createElement("a");link.href=path;link.title=desc;link.className=klass;link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}div.appendChild(ul);sidebar.appendChild(div)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Definitions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector("h1.fqn > .in-band > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=script?script.getAttribute("data-ignore-extern-crates"):"";for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.indexOf(lib)!==-1){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");addClass(code,"in-band");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&href.indexOf("http")!==0){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const div=document.createElement("div");div.className="block crate";div.innerHTML="

Crates

";const ul=document.createElement("ul");div.appendChild(ul);for(const crate of window.ALL_CRATES){let klass="crate";if(window.rootPath!=="./"&&crate===window.currentCrate){klass+=" current"}const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.className=klass;link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(div)}function labelForToggleButton(sectionIsCollapsed){if(sectionIsCollapsed){return"+"}return"\u2212"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}let sectionIsCollapsed=false;if(hasClass(innerToggle,"will-expand")){removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(!hasClass(e,"type-contents-toggle")){e.open=true}});innerToggle.title="collapse all docs"}else{addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});sectionIsCollapsed=true;innerToggle.title="expand all docs"}innerToggle.children[0].innerText=labelForToggleButton(sectionIsCollapsed)}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("rustdoc-toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}});const pageId=getPageId();if(pageId!==null){expandSection(pageId)}}());(function(){if(getSettingValue("line-numbers")==="true"){onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{if(window.innerWidth>=window.RUSTDOC_MOBILE_BREAKPOINT&&oldSidebarScrollPosition!==null){hideSidebar()}});function handleClick(id,f){const elem=document.getElementById(id);if(elem){elem.addEventListener("click",f)}}handleClick(MAIN_ID,()=>{hideSidebar()});onEachLazy(document.getElementsByTagName("a"),el=>{if(el.hash){el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})}});onEachLazy(document.querySelectorAll(".rustdoc-toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});onEachLazy(document.getElementsByClassName("notable-traits"),e=>{e.onclick=function(){this.getElementsByClassName("notable-traits-tooltiptext")[0].classList.toggle("force-tooltip")}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");book_info.className="top";book_info.innerHTML="You can find more information in \ the rustdoc book.";const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
"+x[1]+"
").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";const infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ enum, trait, type, macro, \ diff --git a/rustdoc.css b/rustdoc.css index 2e22b4c..6157c9a 100644 --- a/rustdoc.css +++ b/rustdoc.css @@ -1 +1 @@ - @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;-webkit-font-feature-settings:"kern","liga";-moz-font-feature-settings:"kern","liga";font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:20px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}h1.fqn{margin:0;padding:0;border-bottom-color:var(--headings-border-bottom-color);}h2,h3,h4{border-bottom-color:var(--headings-border-bottom-color);}.main-heading{display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:6px;margin-bottom:15px;}.main-heading a:hover{text-decoration:underline;}#toggle-all-docs{text-decoration:none;}h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;border-bottom-style:none;margin:0;padding:0;margin-top:0.6em;margin-bottom:0.4em;}.impl,.impl-items .method,.methods .method,.impl-items .type,.methods .type,.impl-items .associatedconstant,.methods .associatedconstant,.impl-items .associatedtype,.methods .associatedtype{flex-basis:100%;font-weight:600;position:relative;}div.impl-items>div{padding-left:0;}h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,a.source,.search-input,.search-results .result-name,.content table td:first-child>a,.item-left>a,.out-of-band,span.since,#source-sidebar,#sidebar-toggle,details.rustdoc-toggle>summary::before,div.impl-items>div:not(.docblock):not(.item-info),.content ul.crate a.crate,a.srclink,#main-content>.since,#help-button>button,details.rustdoc-toggle.top-doc>summary,details.rustdoc-toggle.top-doc>summary::before,details.rustdoc-toggle.non-exhaustive>summary,details.rustdoc-toggle.non-exhaustive>summary::before,.scraped-example-title,.more-examples-toggle summary,.more-examples-toggle .hide-more,.example-links a,#main-content>ul.docblock>li>a{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}h1,h2,h3,h4,a#toggle-all-docs,a.anchor,.small-section-header a,#source-sidebar a,pre.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,.in-band a,.search-results a,.module-item .stab,.import-item .stab,.result-name .primitive>i,.result-name .keyword>i,.content .method .where,.content .fn .where,.content .where.fmt-newline{color:var(--main-color);}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p{margin:0 0 .75em 0;}summary{outline:none;}td,th{padding:0;}table{border-collapse:collapse;}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;}button{padding:1px 6px;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.source main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}.source .width-limiter{max-width:unset;}details:not(.rustdoc-toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;}.docblock.item-decl{margin-left:0;}.item-decl pre{overflow-x:auto;}.source .content pre{padding:20px;}img{max-width:100%;}li{position:relative;}.source .content{max-width:none;overflow:visible;margin-left:0px;}nav.sub{position:relative;font-size:1rem;}.sub-container{display:flex;flex-direction:row;flex-wrap:nowrap;}.sub-logo-container{display:none;margin-right:20px;}.source .sub-logo-container{display:block;}.source .sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.sidebar,.mobile-topbar,.sidebar-menu-toggle{background-color:var(--sidebar-background-color);}.sidebar{font-size:0.875rem;width:250px;min-width:200px;overflow-y:scroll;position:sticky;height:100vh;top:0;left:0;}.sidebar-elems,.sidebar>.location{padding-left:24px;}.sidebar .location{overflow-wrap:anywhere;}.rustdoc.source .sidebar{width:50px;min-width:0px;max-width:300px;flex-grow:0;flex-shrink:0;flex-basis:auto;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.rustdoc.source .sidebar .sidebar-logo{display:none;}.source .sidebar,#sidebar-toggle,#source-sidebar{background-color:var(--sidebar-background-color);}#sidebar-toggle>button:hover,#sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.source .sidebar>*:not(#sidebar-toggle){opacity:0;visibility:hidden;}.source-sidebar-expanded .source .sidebar{overflow-y:auto;}.source-sidebar-expanded .source .sidebar>*:not(#sidebar-toggle){opacity:1;visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{display:flex;margin-top:10px;margin-bottom:10px;justify-content:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}.location:empty{border:none;}.location a:first-of-type{font-weight:500;}.block{padding:0;}.block ul,.block li{padding:0;margin:0;list-style:none;}.block a,h2.location a{display:block;padding:0.25rem;margin-left:-0.25rem;text-overflow:ellipsis;overflow:hidden;}.sidebar h2{border-bottom:none;font-weight:500;padding:0;margin:0;margin-top:0.7rem;margin-bottom:0.7rem;}.sidebar h3{font-size:1.125rem;font-weight:500;padding:0;margin:0;}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;}.mobile-topbar{display:none;}.source .content pre.rust{white-space:pre;overflow:auto;padding-left:0;}.rustdoc .example-wrap{display:inline-flex;margin-bottom:10px;}.example-wrap{position:relative;width:100%;}.example-wrap>pre.line-number{overflow:initial;border:1px solid;padding:13px 8px;text-align:right;border-top-left-radius:5px;border-bottom-left-radius:5px;}.example-wrap>pre.rust a:hover{text-decoration:underline;}.line-numbers{text-align:right;}.rustdoc:not(.source) .example-wrap>pre:not(.line-number){width:100%;overflow-x:auto;}.rustdoc:not(.source) .example-wrap>pre.line-numbers{width:auto;overflow-x:visible;}.rustdoc .example-wrap>pre{margin:0;}#search{position:relative;}.search-loading{text-align:center;}#results>table{width:100%;table-layout:fixed;}.content>.example-wrap pre.line-numbers{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.line-numbers span{cursor:pointer;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock-short p{display:inline;}.docblock-short p{overflow:hidden;text-overflow:ellipsis;margin:0;}.docblock>:not(pre)>code,.docblock-short>:not(pre)>code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5,.docblock h6{border-bottom-color:var(--headings-border-bottom-color);}.docblock{margin-left:24px;position:relative;}.docblock>:not(.information):not(.more-examples-toggle){max-width:100%;overflow-x:auto;}.content .out-of-band{flex-grow:0;font-size:1.125rem;font-weight:normal;float:right;}.method>.code-header,.trait-impl>.code-header{max-width:calc(100% - 41px);display:block;}.content .in-band{flex-grow:1;margin:0px;padding:0px;overflow-wrap:break-word;overflow-wrap:anywhere;}.in-band>code,.in-band>.code-header{display:inline-block;}.docblock code,.docblock-short code,pre,.rustdoc.source .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}#main-content>.since{top:inherit;}.content table:not(.table-display){border-spacing:0 5px;}.content td{vertical-align:top;}.content td:first-child{padding-right:20px;}.content td p:first-child{margin-top:0;}.content td h1,.content td h2{margin-left:0;font-size:1.125rem;}.content tr:first-child td{border-top:0;}.docblock table{margin:.5em 0;width:calc(100% - 2px);overflow-x:auto;display:block;}.docblock table td{padding:.5em;border:1px dashed;}.docblock table th{padding:.5em;text-align:left;border:1px solid;}.fields+table{margin-bottom:1em;}.content .item-list{list-style-type:none;padding:0;}.content .multi-column{-moz-column-count:5;-moz-column-gap:2.5em;-webkit-column-count:5;-webkit-column-gap:2.5em;column-count:5;column-gap:2.5em;}.content .multi-column li{width:100%;display:inline-block;}.content>.methods>.method{font-size:1rem;position:relative;}.content .method .where,.content .fn .where,.content .where.fmt-newline{display:block;font-size:0.875rem;}.content .methods>div:not(.notable-traits):not(.method){margin-left:40px;margin-bottom:15px;}.content .docblock>.impl-items{margin-left:20px;margin-top:-34px;}.content .docblock>.impl-items .table-display{margin:0;}.content .docblock>.impl-items table td{padding:0;}.content .docblock>.impl-items .table-display,.impl-items table td{border:none;}.item-info{display:block;}.content .item-info code{font-size:0.875rem;}.content .item-info{position:relative;margin-left:24px;}.sub-variant>div>.item-info{margin-top:initial;}.content .impl-items .docblock,.content .impl-items .item-info{margin-bottom:.6em;}.content .impl-items>.item-info{margin-left:40px;}.methods>.item-info,.content .impl-items>.item-info{margin-top:-8px;}.impl-items{flex-basis:100%;}#main-content>.item-info{margin-top:0;margin-left:0;}nav.sub{flex-grow:1;margin-bottom:25px;}.source nav.sub{margin-left:32px;}nav.main{padding:20px 0;text-align:center;}nav.main .current{border-top:1px solid;border-bottom:1px solid;}nav.main .separator{border:1px solid;display:inline-block;height:23px;margin:0 20px;}nav.sum{text-align:right;}nav.sub form{display:inline;}a{text-decoration:none;background:transparent;}.small-section-header{display:flex;justify-content:space-between;position:relative;}.small-section-header:hover>.anchor{display:initial;}.in-band:hover>.anchor,.impl:hover>.anchor,.method.trait-impl:hover>.anchor,.type.trait-impl:hover>.anchor,.associatedconstant.trait-impl:hover>.anchor,.associatedtype.trait-impl:hover>.anchor{display:inline-block;position:absolute;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.anchor::before{content:'§';}.docblock a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,.docblock-short a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,.item-info a{text-decoration:underline;}.block a.current.crate{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;}.item-row{display:table-row;}.item-left,.item-right{display:table-cell;}.item-left{padding-right:1.25rem;}.search-container{position:relative;display:flex;height:34px;}.search-container>*{height:100%;}.search-results-title{display:inline;}#search-settings{font-size:1.5rem;font-weight:500;margin-bottom:20px;}#crate-search{min-width:115px;margin-top:5px;padding-left:0.15em;padding-right:23px;border:1px solid;border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;background-repeat:no-repeat;background-color:transparent;background-size:20px;background-position:calc(100% - 1px) 56%;background-image:url("down-arrow.svg");max-width:100%;text-overflow:ellipsis;}.search-container{margin-top:4px;}.search-input{-webkit-appearance:none;-moz-box-sizing:border-box !important;box-sizing:border-box !important;outline:none;border:1px solid;border-radius:2px;padding:8px;font-size:1rem;width:100%;}.search-results{display:none;padding-bottom:2em;}.search-results.active{display:block;clear:both;}.search-results .desc>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;}.search-results>a{display:block;width:100%;margin-left:2px;margin-right:2px;border-bottom:1px solid #aaa3;}.search-results>a>div{display:flex;flex-flow:row wrap;}.search-results .result-name,.search-results div.desc,.search-results .result-description{width:50%;}.search-results .result-name{padding-right:1em;}.search-results .result-name>span{display:inline-block;margin:0;font-weight:normal;}.popover{font-size:1rem;position:absolute;right:0;z-index:2;display:block;margin-top:7px;border-radius:3px;border:1px solid;font-size:1rem;}.popover::before{content:'';position:absolute;right:11px;border:solid;border-width:1px 1px 0 0;display:inline-block;padding:4px;transform:rotate(-45deg);top:-5px;}.popover,.popover::before{background-color:var(--main-background-color);color:var(--main-color);}#help-button .popover{max-width:600px;}#help-button .popover::before{right:48px;}#help-button dt{float:left;clear:left;display:block;margin-right:0.5rem;}#help-button span.top,#help-button span.bottom{text-align:center;display:block;font-size:1.125rem;}#help-button span.top{text-align:center;display:block;margin:10px 0;border-bottom:1px solid;padding-bottom:4px;margin-bottom:6px;}#help-button span.bottom{clear:both;border-top:1px solid;}.side-by-side{text-align:initial;}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{width:fit-content;min-height:36px;display:flex;align-items:center;white-space:pre-wrap;}.stab{padding:3px;margin-bottom:5px;font-size:0.875rem;font-weight:normal;}.stab p{display:inline;margin:0;}.stab .emoji{font-size:1.25rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.module-item .stab,.import-item .stab{border-radius:3px;display:inline-block;font-size:0.875rem;line-height:1.2;margin-bottom:0;margin-left:0.3125em;padding:2px;vertical-align:text-bottom;}.module-item.unstable,.import-item.unstable{opacity:0.65;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;padding-right:2px;position:initial;}.impl-items .srclink,.impl .srclink,.methods .srclink{font-weight:normal;font-size:1rem;}.rightside{float:right;}.variants_table{width:100%;}.variants_table tbody tr td:first-child{width:1%;}td.summary-column{width:100%;}.summary{padding-right:0px;}pre.rust .question-mark{font-weight:bold;}a.test-arrow{display:inline-block;visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;}.example-wrap:hover .test-arrow{visibility:visible;}a.test-arrow:hover{text-decoration:none;}.code-attribute{font-weight:300;}.item-spacer{width:100%;height:12px;}.out-of-band>span.since{position:initial;font-size:1.25rem;}h3.variant{font-weight:600;font-size:1.125rem;margin-bottom:10px;border-bottom:none;}.sub-variant h4{font-size:1rem;font-weight:400;border-bottom:none;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}.toggle-label{display:inline-block;margin-left:4px;margin-top:3px;}:target>code,:target>.code-header{opacity:1;}:target{padding-right:3px;}.information{position:absolute;left:-25px;margin-top:7px;z-index:1;}.tooltip{position:relative;display:inline-block;cursor:pointer;}.tooltip::after{display:none;text-align:center;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;font-size:1rem;}.tooltip.ignore::after{content:"This example is not tested";}.tooltip.compile_fail::after{content:"This example deliberately fails to compile";}.tooltip.should_panic::after{content:"This example panics";}.tooltip.edition::after{content:"This code runs with edition " attr(data-edition);}.tooltip::before{content:" ";position:absolute;top:50%;left:16px;margin-top:-5px;border-width:5px;border-style:solid;display:none;}.tooltip:hover::before,.tooltip:hover::after{display:inline;}.tooltip.compile_fail,.tooltip.should_panic,.tooltip.ignore{font-weight:bold;font-size:1.25rem;}.notable-traits-tooltip{display:inline-block;cursor:pointer;}.notable-traits:hover .notable-traits-tooltiptext,.notable-traits .notable-traits-tooltiptext.force-tooltip{display:inline-block;}.notable-traits .notable-traits-tooltiptext{display:none;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;z-index:10;font-size:1rem;cursor:default;position:absolute;border:1px solid;}.notable-traits-tooltip::after{content:"\00a0\00a0\00a0";}.notable-traits .notable,.notable-traits .docblock{margin:0;}.notable-traits .notable{margin:0;margin-bottom:13px;font-size:1.1875rem;font-weight:600;display:block;}.notable-traits .docblock code.content{margin:0;padding:0;font-size:1.25rem;}pre.rust.rust-example-rendered{position:relative;}pre.rust{tab-size:4;-moz-tab-size:4;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#titles{height:35px;}#titles>button{float:left;width:33.3%;text-align:center;font-size:1.125rem;cursor:pointer;border:0;border-top:2px solid;}#titles>button:first-child:last-child{margin-right:1px;width:calc(100% - 1px);}#titles>button:not(:last-child){margin-right:1px;width:calc(33.3% - 1px);}#titles>button>div.count{display:inline-block;font-size:1rem;}.notable-traits{cursor:pointer;z-index:2;margin-left:5px;}#sidebar-toggle{position:sticky;top:0;left:0;font-weight:bold;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:center;align-items:center;z-index:10;}#source-sidebar{width:100%;z-index:1;overflow:auto;}#source-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid;margin-bottom:6px;}#sidebar-toggle>button{background:none;color:inherit;cursor:pointer;text-align:center;border:none;outline:none;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;outline:none;}#copy-path{height:34px;}#settings-menu>a,#help-button>button,#copy-path{padding:5px;width:33px;border:1px solid;border-radius:2px;cursor:pointer;}#settings-menu{padding:0;}#settings-menu>a,#help-button>button{padding:5px;height:100%;display:block;}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}.setting-line .radio-line input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-line .radio-line input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-line .radio-line input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-line .radio-line input:hover{border-color:var(--settings-input-color) !important;}input:checked+.slider{background-color:var(--settings-input-color);}#help-button>button{text-align:center;font-size:20px;padding-top:2px;}#copy-path{background:initial;margin-left:10px;padding:0;padding-left:2px;border:0;}#theme-choices{display:none;position:absolute;left:0;top:28px;border:1px solid;border-radius:3px;z-index:1;cursor:pointer;}#theme-choices>button{border:none;width:100%;padding:4px 8px;text-align:center;background:rgba(0,0,0,0);overflow-wrap:normal;}#theme-choices>button:not(:first-child){border-top:1px solid;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px;border-radius:3px;cursor:default;}.hidden-by-impl-hider,.hidden-by-usual-hider{display:none !important;}#implementations-list>h3>span.in-band{width:100%;}.table-display{width:100%;border:0;border-collapse:collapse;border-spacing:0;font-size:1rem;}.table-display tr td:first-child{padding-right:0;}.table-display tr td:last-child{float:right;}.table-display .out-of-band{position:relative;font-size:1.125rem;display:block;}.table-display td:hover .anchor{display:block;top:2px;left:-5px;}#main-content>ul{padding-left:10px;}#main-content>ul>li{list-style:none;}.non-exhaustive{margin-bottom:1em;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 13px;list-style-position:outside;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.rustdoc-toggle>summary.hideme{cursor:pointer;}details.rustdoc-toggle>summary{list-style:none;}details.rustdoc-toggle>summary::-webkit-details-marker,details.rustdoc-toggle>summary::marker{display:none;}details.rustdoc-toggle>summary.hideme>span{margin-left:9px;}details.rustdoc-toggle>summary::before{content:"";cursor:pointer;width:16px;height:16px;background-repeat:no-repeat;background-position:top left;display:inline-block;vertical-align:middle;opacity:.5;}details.rustdoc-toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.rustdoc-toggle>summary.hideme::after{content:"";}details.rustdoc-toggle>summary:focus::before,details.rustdoc-toggle>summary:hover::before{opacity:1;}details.rustdoc-toggle.top-doc>summary,details.rustdoc-toggle.top-doc>summary::before,details.rustdoc-toggle.non-exhaustive>summary,details.rustdoc-toggle.non-exhaustive>summary::before{font-size:1rem;}details.non-exhaustive{margin-bottom:8px;}details.rustdoc-toggle>summary.hideme::before{position:relative;}details.rustdoc-toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.rustdoc-toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.rustdoc-toggle[open] >summary.hideme{position:absolute;}details.rustdoc-toggle{position:relative;}details.rustdoc-toggle[open] >summary.hideme>span{display:none;}details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle[open] >summary.hideme::before{background-image:url("toggle-minus.svg");}details.rustdoc-toggle>summary::before{background-image:url("toggle-plus.svg");}details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle[open] >summary.hideme::before{width:16px;height:16px;background-repeat:no-repeat;background-position:top left;display:inline-block;content:"";}details.rustdoc-toggle[open] >summary::after,details.rustdoc-toggle[open] >summary.hideme::after{content:"Collapse";}.docblock summary>*{display:inline-block;}@media (min-width:701px){.docblock>.information:first-child>.tooltip{margin-top:16px;}.source-sidebar-expanded .source .sidebar+main .width-limiter .sub-logo-container.rust-logo{display:none;}.source-sidebar-expanded .source .sidebar{width:300px;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{padding-top:0px;display:block;}main{padding-left:15px;padding-top:0px;}.rustdoc,.main-heading{flex-direction:column;}.content .out-of-band{text-align:left;margin-left:initial;padding:initial;}.content .out-of-band .since::before{content:"Since ";}#copy-path{display:none;}.sidebar .sidebar-logo,.sidebar .location{display:none;}.sidebar-elems{margin-top:1em;}.sidebar{position:fixed;top:45px;left:-1000px;margin-left:0;margin:0;padding:0;z-index:11;height:calc(100vh - 45px);}.source main,.rustdoc.source .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.source-sidebar-expanded .source .sidebar,.sidebar:focus-within{left:0;}.rustdoc.source>.sidebar{position:fixed;margin:0;z-index:11;width:0;}.mobile-topbar .location a{padding:0;margin:0;}.mobile-topbar .location{border:none;padding:0;margin:auto 0.5em auto auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:24px;}.mobile-topbar .logo-container{max-height:45px;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin-left:20px;margin-top:5px;margin-bottom:5px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.source .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;}.sidebar-elems{background-color:var(--sidebar-background-color);}.source nav:not(.sidebar).sub{margin-left:32px;}.content{margin-left:0px;}.source .content{margin-top:10px;}#search{margin-left:0;padding:0;}.anchor{display:none !important;}.notable-traits{position:absolute;left:-22px;top:24px;}#titles>button>div.count{float:left;width:100%;}#titles{height:50px;}#sidebar-filler{position:fixed;left:45px;width:calc(100% - 45px);top:0;height:45px;z-index:-1;border-bottom:1px solid;}#main-content>details.rustdoc-toggle>summary::before,#main-content>div>details.rustdoc-toggle>summary::before{left:-11px;}#sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;text-align:center;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;cursor:pointer;font-weight:bold;border:1px solid;border-left:0;}.source-sidebar-expanded #sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#source-sidebar{z-index:11;}#main-content>.line-numbers{margin-top:0;}.notable-traits .notable-traits-tooltiptext{left:0;top:100%;}#help-button{display:none;}.item-table{display:block;}.item-row{display:flex;flex-flow:column wrap;}.item-left,.item-right{width:100%;}.search-results>a{border-bottom:1px solid #aaa9;padding:5px 0px;}.search-results .result-name,.search-results div.desc,.search-results .result-description{width:100%;}.search-results div.desc,.search-results .result-description,.item-right{padding-left:2em;}.source-sidebar-expanded .source .sidebar{max-width:100vw;width:100vw;}details.rustdoc-toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.rustdoc-toggle>summary:not(.hideme)::before,#main-content>details.rustdoc-toggle:not(.top-doc)>summary::before,#main-content>div>details.rustdoc-toggle>summary::before{left:-11px;}}@media print{nav.sidebar,nav.sub,.content .out-of-band,a.srclink,#copy-path,details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle>summary::before,details.rustdoc-toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){#titles,#titles>button{height:73px;}#main-content>table:not(.table-display) td{word-break:break-word;width:50%;}#crate-search{border-radius:4px;}.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}.sub-container{flex-direction:column;}.sub-logo-container{align-self:center;}.source .sub-logo-container>img{height:35px;width:35px;}#sidebar-toggle{top:10px;}.source-sidebar-expanded #sidebar-toggle{top:unset;}}.method-toggle summary,.implementors-toggle summary,.impl{margin-bottom:0.75em;}.method-toggle[open]{margin-bottom:2em;}.implementors-toggle[open]{margin-bottom:2em;}#trait-implementations-list .method-toggle,#synthetic-implementations-list .method-toggle,#blanket-implementations-list .method-toggle{margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;background:transparent;border-width:1px;border-style:solid;border-radius:50px;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:240px;}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;max-height:240px;padding-bottom:0;}.scraped-example:not(.expanded) .code-wrapper pre.line-numbers{overflow-x:hidden;}.scraped-example .code-wrapper .prev{position:absolute;top:0.25em;right:2.25em;z-index:100;cursor:pointer;}.scraped-example .code-wrapper .next{position:absolute;top:0.25em;right:1.25em;z-index:100;cursor:pointer;}.scraped-example .code-wrapper .expand{position:absolute;top:0.25em;right:0.25em;z-index:100;cursor:pointer;}.scraped-example:not(.expanded) .code-wrapper:before{content:" ";width:100%;height:5px;position:absolute;z-index:100;top:0;}.scraped-example:not(.expanded) .code-wrapper:after{content:" ";width:100%;height:5px;position:absolute;z-index:100;bottom:0;}.scraped-example .code-wrapper .line-numbers{margin:0;padding:14px 0;}.scraped-example .code-wrapper .line-numbers span{padding:0 14px;}.scraped-example .code-wrapper .example-wrap{flex:1;overflow-x:auto;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .code-wrapper .example-wrap pre.rust{overflow-x:inherit;width:inherit;overflow-y:hidden;}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;margin-bottom:5px;cursor:pointer;}.more-scraped-examples{margin-left:5px;display:flex;flex-direction:row;}.more-scraped-examples-inner{width:calc(100% - 20px);}.toggle-line{align-self:stretch;margin-right:10px;margin-top:5px;padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;}.more-scraped-examples .scraped-example{margin-bottom:20px;}.more-scraped-examples .scraped-example:last-child{margin-bottom:0;}.example-links a{margin-top:20px;}.example-links ul{margin-bottom:0;} \ No newline at end of file + @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;-webkit-font-feature-settings:"kern","liga";-moz-font-feature-settings:"kern","liga";font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:20px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}h1.fqn{margin:0;padding:0;border-bottom-color:var(--headings-border-bottom-color);}h2,h3,h4{border-bottom-color:var(--headings-border-bottom-color);}.main-heading{display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:6px;margin-bottom:15px;}.main-heading a:hover{text-decoration:underline;}#toggle-all-docs{text-decoration:none;}h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;border-bottom-style:none;margin:0;padding:0;margin-top:0.6em;margin-bottom:0.4em;}.impl,.impl-items .method,.methods .method,.impl-items .type,.methods .type,.impl-items .associatedconstant,.methods .associatedconstant,.impl-items .associatedtype,.methods .associatedtype{flex-basis:100%;font-weight:600;position:relative;}h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,a.source,.search-input,.search-results .result-name,.item-left>a,.out-of-band,span.since,details.rustdoc-toggle>summary::before,.content ul.crate a.crate,a.srclink,#help-button>button,details.rustdoc-toggle.top-doc>summary,details.rustdoc-toggle.top-doc>summary::before,details.rustdoc-toggle.non-exhaustive>summary,details.rustdoc-toggle.non-exhaustive>summary::before,.scraped-example-title,.more-examples-toggle summary,.more-examples-toggle .hide-more,.example-links a,#main-content>ul.docblock>li>a{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}a#toggle-all-docs,a.anchor,.small-section-header a,#source-sidebar a,pre.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,.in-band a,.search-results a,.module-item .stab,.import-item .stab,.result-name .primitive>i,.result-name .keyword>i,.content .method .where,.content .fn .where,.content .where.fmt-newline{color:var(--main-color);}.content span.enum,.content a.enum,.content span.struct,.content a.struct,.content span.union,.content a.union,.content span.primitive,.content a.primitive,.content span.type,.content a.type,.content span.foreigntype,.content a.foreigntype{color:var(--type-link-color);}.content span.trait,.content a.trait,.content span.traitalias,.content a.traitalias{color:var(--trait-link-color);}.content span.associatedtype,.content a.associatedtype,.content span.constant,.content a.constant,.content span.static,.content a.static{color:var(--assoc-item-link-color);}.content span.fn,.content a.fn,.content .fnname,.content span.method,.content a.method,.content span.tymethod,.content a.tymethod{color:var(--function-link-color);}.content span.attr,.content a.attr,.content span.derive,.content a.derive,.content span.macro,.content a.macro{color:var(--macro-link-color);}.content span.mod,.content a.mod,.block a.current.mod{color:var(--mod-link-color);}.content span.keyword,.content a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p{margin:0 0 .75em 0;}summary{outline:none;}td,th{padding:0;}table{border-collapse:collapse;}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;}button{padding:1px 6px;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.source main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}.source .width-limiter{max-width:unset;}details:not(.rustdoc-toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;}.docblock.item-decl{margin-left:0;}.item-decl pre{overflow-x:auto;}.source .content pre{padding:20px;}img{max-width:100%;}.source .content{overflow:visible;}.sub-container{display:flex;flex-direction:row;flex-wrap:nowrap;}.sub-logo-container{display:none;margin-right:20px;}.source .sub-logo-container{display:block;}.source .sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.sidebar,.mobile-topbar,.sidebar-menu-toggle{background-color:var(--sidebar-background-color);}.sidebar{font-size:0.875rem;width:250px;min-width:200px;overflow-y:scroll;position:sticky;height:100vh;top:0;left:0;}.sidebar-elems,.sidebar>.location{padding-left:24px;}.sidebar .location{overflow-wrap:anywhere;}.rustdoc.source .sidebar{width:50px;min-width:0px;max-width:300px;flex-grow:0;flex-shrink:0;flex-basis:auto;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.rustdoc.source .sidebar .sidebar-logo{display:none;}.source .sidebar,#sidebar-toggle,#source-sidebar{background-color:var(--sidebar-background-color);}#sidebar-toggle>button:hover,#sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.source .sidebar>*:not(#sidebar-toggle){opacity:0;visibility:hidden;}.source-sidebar-expanded .source .sidebar{overflow-y:auto;}.source-sidebar-expanded .source .sidebar>*:not(#sidebar-toggle){opacity:1;visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{display:flex;margin-top:10px;margin-bottom:10px;justify-content:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}.location:empty{border:none;}.location a:first-of-type{font-weight:500;}.block ul,.block li{padding:0;margin:0;list-style:none;}.block a,h2.location a{display:block;padding:0.25rem;margin-left:-0.25rem;text-overflow:ellipsis;overflow:hidden;}.sidebar h2{border-bottom:none;font-weight:500;padding:0;margin:0;margin-top:0.7rem;margin-bottom:0.7rem;}.sidebar h3{font-size:1.125rem;font-weight:500;padding:0;margin:0;}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;}.mobile-topbar{display:none;}.source .content pre.rust{white-space:pre;overflow:auto;padding-left:0;}.rustdoc .example-wrap{display:inline-flex;margin-bottom:10px;}.example-wrap{position:relative;width:100%;}.example-wrap>pre.line-number{overflow:initial;border:1px solid;padding:13px 8px;text-align:right;border-top-left-radius:5px;border-bottom-left-radius:5px;}.example-wrap>pre.rust a:hover{text-decoration:underline;}.line-numbers{text-align:right;}.rustdoc:not(.source) .example-wrap>pre:not(.line-number){width:100%;overflow-x:auto;}.rustdoc:not(.source) .example-wrap>pre.line-numbers{width:auto;overflow-x:visible;}.rustdoc .example-wrap>pre{margin:0;}.search-loading{text-align:center;}.content>.example-wrap pre.line-numbers{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.line-numbers span{cursor:pointer;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;overflow:hidden;text-overflow:ellipsis;}.docblock>:not(pre)>code,.docblock-short>code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5,.docblock h6{border-bottom-color:var(--headings-border-bottom-color);}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.content .out-of-band{flex-grow:0;font-size:1.125rem;font-weight:normal;float:right;}.method>.code-header,.trait-impl>.code-header{max-width:calc(100% - 41px);display:block;}.content .in-band{flex-grow:1;margin:0px;padding:0px;overflow-wrap:break-word;overflow-wrap:anywhere;background-color:var(--main-background-color);}.in-band>code,.in-band>.code-header{display:inline-block;}.docblock code,.docblock-short code,pre,.rustdoc.source .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;width:calc(100% - 2px);overflow-x:auto;display:block;}.docblock table td{padding:.5em;border:1px dashed var(--border-color);vertical-align:top;}.docblock table th{padding:.5em;text-align:left;border:1px solid var(--border-color);}.content .item-list{list-style-type:none;padding:0;}.content>.methods>.method{font-size:1rem;position:relative;}.content .method .where,.content .fn .where,.content .where.fmt-newline{display:block;font-size:0.875rem;}.item-info{display:block;}.content .item-info code{font-size:0.875rem;}.content .item-info{position:relative;margin-left:24px;}.content .impl-items .docblock,.content .impl-items .item-info{margin-bottom:.6em;}#main-content>.item-info{margin-top:0;margin-left:0;}nav.sub{position:relative;font-size:1rem;flex-grow:1;margin-bottom:25px;}.source nav.sub{margin-left:32px;}nav.sum{text-align:right;}nav.sub form{display:inline;}a{text-decoration:none;}.small-section-header{display:flex;justify-content:space-between;position:relative;}.small-section-header:hover>.anchor{display:initial;}.in-band:hover>.anchor,.impl:hover>.anchor,.method.trait-impl:hover>.anchor,.type.trait-impl:hover>.anchor,.associatedconstant.trait-impl:hover>.anchor,.associatedtype.trait-impl:hover>.anchor{display:inline-block;position:absolute;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.anchor::before{content:'§';}.docblock a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,.docblock-short a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,.item-info a{text-decoration:underline;}.block a.current.crate{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;}.item-row{display:table-row;}.item-left,.item-right{display:table-cell;}.item-left{padding-right:1.25rem;}.search-container{position:relative;display:flex;height:34px;margin-top:4px;}.search-container>*{height:100%;}.search-results-title{margin-top:0;white-space:nowrap;display:inline-flex;max-width:100%;align-items:baseline;}#crate-search-div{display:inline-block;position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0;padding-left:4px;padding-right:23px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);}@-moz-document url-prefix(){#crate-search{padding-left:0px;padding-right:19px;}}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url("down-arrow.svg");}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;-moz-box-sizing:border-box !important;box-sizing:border-box !important;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;width:100%;background-color:var(--button-background-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;padding-bottom:2em;}.search-results.active{display:block;clear:both;}.search-results .desc>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;}.search-results>a{display:block;margin-left:2px;margin-right:2px;border-bottom:1px solid #aaa3;}.search-results>a>div{display:flex;flex-flow:row wrap;}.search-results .result-name,.search-results div.desc,.search-results .result-description{width:50%;}.search-results .result-name{padding-right:1em;}.popover{font-size:1rem;position:absolute;right:0;z-index:2;display:block;margin-top:7px;border-radius:3px;border:1px solid var(--border-color);font-size:1rem;}.popover::before{content:'';position:absolute;right:11px;border:solid var(--border-color);border-width:1px 1px 0 0;display:inline-block;padding:4px;transform:rotate(-45deg);top:-5px;}.popover,.popover::before{background-color:var(--main-background-color);color:var(--main-color);}#help-button .popover{max-width:600px;}#help-button .popover::before{right:48px;}#help-button dt{float:left;clear:left;display:block;margin-right:0.5rem;}#help-button span.top,#help-button span.bottom{text-align:center;display:block;font-size:1.125rem;}#help-button span.top{text-align:center;display:block;margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help-button span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side{text-align:initial;}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{width:fit-content;min-height:36px;display:flex;align-items:center;white-space:pre-wrap;}.stab{padding:3px;margin-bottom:5px;font-size:0.875rem;font-weight:normal;}.stab p{display:inline;margin:0;}.stab .emoji{font-size:1.25rem;margin-right:0.3rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.module-item .stab,.import-item .stab{border-radius:3px;display:inline-block;font-size:0.875rem;line-height:1.2;margin-bottom:0;margin-left:0.3125em;padding:2px;vertical-align:text-bottom;}.module-item.unstable,.import-item.unstable{opacity:0.65;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;padding-right:2px;position:initial;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}.impl-items .srclink,.impl .srclink,.methods .srclink{font-weight:normal;font-size:1rem;}td.summary-column{width:100%;}.summary{padding-right:0px;}pre.rust .question-mark{font-weight:bold;}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;cursor:pointer;left:-25px;top:5px;}.example-wrap .tooltip::after{display:none;text-align:center;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;font-size:1rem;border:1px solid var(--border-color);position:absolute;width:max-content;top:-2px;z-index:1;}.example-wrap .tooltip::before{content:" ";position:absolute;top:50%;left:16px;margin-top:-5px;border-width:5px;border-style:solid;display:none;z-index:1;}.example-wrap.ignore .tooltip::after{content:"This example is not tested";}.example-wrap.compile_fail .tooltip::after{content:"This example deliberately fails to compile";}.example-wrap.should_panic .tooltip::after{content:"This example panics";}.example-wrap.edition .tooltip::after{content:"This code runs with edition " attr(data-edition);}.example-wrap .tooltip:hover::before,.example-wrap .tooltip:hover::after{display:inline;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}a.test-arrow{display:inline-block;visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;}.example-wrap:hover .test-arrow{visibility:visible;}a.test-arrow:hover{text-decoration:none;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;}.out-of-band>span.since{font-size:1.25rem;}h3.variant{font-weight:600;font-size:1.125rem;margin-bottom:10px;border-bottom:none;}.sub-variant h4{font-size:1rem;font-weight:400;border-bottom:none;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target>code,:target>.code-header{opacity:1;}:target{padding-right:3px;}.notable-traits-tooltip{display:inline-block;cursor:pointer;}.notable-traits:hover .notable-traits-tooltiptext,.notable-traits .notable-traits-tooltiptext.force-tooltip{display:inline-block;}.notable-traits .notable-traits-tooltiptext{display:none;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;z-index:10;font-size:1rem;cursor:default;position:absolute;border:1px solid;}.notable-traits-tooltip::after{content:"\00a0\00a0\00a0";}.notable-traits .notable,.notable-traits .docblock{margin:0;}.notable-traits .notable{margin:0;margin-bottom:13px;font-size:1.1875rem;font-weight:600;display:block;}.notable-traits .docblock code.content{margin:0;padding:0;font-size:1.25rem;}pre.rust.rust-example-rendered{position:relative;}pre.rust{tab-size:4;-moz-tab-size:4;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#titles{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#titles>button{text-align:center;font-size:1.125rem;cursor:pointer;border:0;border-top:2px solid;flex:1;}#titles>button>div.count{display:inline-block;font-size:1rem;}.notable-traits{cursor:pointer;z-index:2;margin-left:5px;}#sidebar-toggle{position:sticky;top:0;left:0;font-weight:bold;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:center;align-items:center;z-index:10;}#source-sidebar{width:100%;z-index:1;overflow:auto;}#source-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#sidebar-toggle>button{background:none;color:inherit;cursor:pointer;text-align:center;border:none;outline:none;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;outline:none;}#settings-menu>a,#help-button>button,#copy-path{padding:5px;width:33px;border:1px solid var(--border-color);border-radius:2px;cursor:pointer;}#settings-menu>a,#help-button>button{padding:5px;height:100%;display:block;background-color:var(--button-background-color);}#copy-path{color:var(--copy-path-button-color);}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}.setting-line .radio-line input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-line .radio-line input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-line .radio-line input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-line .radio-line input:hover{border-color:var(--settings-input-color) !important;}input:checked+.slider{background-color:var(--settings-input-color);}#help-button>button{text-align:center;font-size:20px;padding-top:2px;}#copy-path{height:34px;background-color:var(--main-background-color);margin-left:10px;padding:0;padding-left:2px;border:0;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;cursor:default;}#main-content>ul{padding-left:10px;}#main-content>ul>li{list-style:none;}.non-exhaustive{margin-bottom:1em;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 13px;list-style-position:outside;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.rustdoc-toggle>summary.hideme{cursor:pointer;}details.rustdoc-toggle>summary{list-style:none;}details.rustdoc-toggle>summary::-webkit-details-marker,details.rustdoc-toggle>summary::marker{display:none;}details.rustdoc-toggle>summary.hideme>span{margin-left:9px;}details.rustdoc-toggle>summary::before{content:"";cursor:pointer;width:16px;height:16px;background-repeat:no-repeat;background-position:top left;display:inline-block;vertical-align:middle;opacity:.5;}details.rustdoc-toggle>summary.hideme>span,details.rustdoc-toggle>summary::before,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.rustdoc-toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.rustdoc-toggle>summary.hideme::after{content:"";}details.rustdoc-toggle>summary:focus::before,details.rustdoc-toggle>summary:hover::before{opacity:1;}details.rustdoc-toggle.top-doc>summary,details.rustdoc-toggle.top-doc>summary::before,details.rustdoc-toggle.non-exhaustive>summary,details.rustdoc-toggle.non-exhaustive>summary::before{font-size:1rem;}details.non-exhaustive{margin-bottom:8px;}details.rustdoc-toggle>summary.hideme::before{position:relative;}details.rustdoc-toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.rustdoc-toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.rustdoc-toggle[open] >summary.hideme{position:absolute;}details.rustdoc-toggle{position:relative;}details.rustdoc-toggle[open] >summary.hideme>span{display:none;}details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle[open] >summary.hideme::before{background-image:url("toggle-minus.svg");}details.rustdoc-toggle>summary::before{background-image:url("toggle-plus.svg");}details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle[open] >summary.hideme::before{width:16px;height:16px;background-repeat:no-repeat;background-position:top left;display:inline-block;content:"";}details.rustdoc-toggle[open] >summary::after,details.rustdoc-toggle[open] >summary.hideme::after{content:"Collapse";}.docblock summary>*{display:inline-block;}@media (min-width:701px){.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.source-sidebar-expanded .source .sidebar+main .width-limiter .sub-logo-container.rust-logo{display:none;}.source-sidebar-expanded .source .sidebar{width:300px;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{padding-top:0px;display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.content .out-of-band{text-align:left;margin-left:initial;padding:initial;}.content .out-of-band .since::before{content:"Since ";}#copy-path{display:none;}.sidebar .sidebar-logo,.sidebar .location{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;margin-left:0;margin:0;padding:0;z-index:11;height:calc(100vh - 45px);}.source main,.rustdoc.source .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.source-sidebar-expanded .source .sidebar,.sidebar:focus-within{left:0;}.rustdoc.source>.sidebar{position:fixed;margin:0;z-index:11;width:0;}.mobile-topbar .location a{padding:0;margin:0;}.mobile-topbar .location{border:none;padding:0;margin:auto 0.5em auto auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:24px;}.mobile-topbar .logo-container{max-height:45px;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin-left:20px;margin-top:5px;margin-bottom:5px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.source .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;}.sidebar-elems{margin-top:1em;background-color:var(--sidebar-background-color);}.content{margin-left:0px;}.source .content{margin-top:10px;}.anchor{display:none !important;}#titles>button>div.count{display:block;}#sidebar-filler{position:fixed;left:45px;width:calc(100% - 45px);top:0;height:45px;z-index:-1;border-bottom:1px solid;}#main-content>details.rustdoc-toggle>summary::before,#main-content>div>details.rustdoc-toggle>summary::before{left:-11px;}#sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;text-align:center;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;cursor:pointer;font-weight:bold;border:1px solid;border-left:0;}.source-sidebar-expanded #sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#source-sidebar{z-index:11;}#main-content>.line-numbers{margin-top:0;}.notable-traits .notable-traits-tooltiptext{left:0;top:100%;}#help-button{display:none;}.item-table{display:block;}.item-row{display:flex;flex-flow:column wrap;}.item-left,.item-right{width:100%;}.search-results>a{border-bottom:1px solid #aaa9;padding:5px 0px;}.search-results .result-name,.search-results div.desc,.search-results .result-description{width:100%;}.search-results div.desc,.search-results .result-description,.item-right{padding-left:2em;}.source-sidebar-expanded .source .sidebar{max-width:100vw;width:100vw;}details.rustdoc-toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.rustdoc-toggle>summary:not(.hideme)::before,#main-content>details.rustdoc-toggle:not(.top-doc)>summary::before,#main-content>div>details.rustdoc-toggle>summary::before{left:-11px;}.content .impl-items>.item-info{margin-left:34px;}}@media print{nav.sidebar,nav.sub,.content .out-of-band,a.srclink,#copy-path,details.rustdoc-toggle[open] >summary::before,details.rustdoc-toggle>summary::before,details.rustdoc-toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){#crate-search{border-radius:4px;}.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}.sub-container{flex-direction:column;}.sub-logo-container{align-self:center;}.source .sub-logo-container>img{height:35px;width:35px;}#sidebar-toggle{top:10px;}.source-sidebar-expanded #sidebar-toggle{top:unset;}}.method-toggle summary,.implementors-toggle summary,.impl{margin-bottom:0.75em;}.method-toggle[open]{margin-bottom:2em;}.implementors-toggle[open]{margin-bottom:2em;}#trait-implementations-list .method-toggle,#synthetic-implementations-list .method-toggle,#blanket-implementations-list .method-toggle{margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;background:transparent;border-width:1px;border-style:solid;border-radius:50px;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:240px;}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;max-height:240px;padding-bottom:0;}.scraped-example:not(.expanded) .code-wrapper pre.line-numbers{overflow-x:hidden;}.scraped-example .code-wrapper .prev{position:absolute;top:0.25em;right:2.25em;z-index:100;cursor:pointer;}.scraped-example .code-wrapper .next{position:absolute;top:0.25em;right:1.25em;z-index:100;cursor:pointer;}.scraped-example .code-wrapper .expand{position:absolute;top:0.25em;right:0.25em;z-index:100;cursor:pointer;}.scraped-example:not(.expanded) .code-wrapper:before{content:" ";width:100%;height:5px;position:absolute;z-index:100;top:0;}.scraped-example:not(.expanded) .code-wrapper:after{content:" ";width:100%;height:5px;position:absolute;z-index:100;bottom:0;}.scraped-example .code-wrapper .line-numbers{margin:0;padding:14px 0;}.scraped-example .code-wrapper .line-numbers span{padding:0 14px;}.scraped-example .code-wrapper .example-wrap{flex:1;overflow-x:auto;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .code-wrapper .example-wrap pre.rust{overflow-x:inherit;width:inherit;overflow-y:hidden;}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;margin-bottom:5px;cursor:pointer;}.more-scraped-examples{margin-left:5px;display:flex;flex-direction:row;}.more-scraped-examples-inner{width:calc(100% - 20px);}.toggle-line{align-self:stretch;margin-right:10px;margin-top:5px;padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;}.more-scraped-examples .scraped-example{margin-bottom:20px;}.more-scraped-examples .scraped-example:last-child{margin-bottom:0;}.example-links a{margin-top:20px;}.example-links ul{margin-bottom:0;} \ No newline at end of file diff --git a/search-index.js b/search-index.js index ffd83e1..a814eb1 100644 --- a/search-index.js +++ b/search-index.js @@ -1,5 +1,5 @@ var searchIndex = JSON.parse('{\ -"libmedium":{"doc":"","t":[6,17,3,17,17,17,17,3,3,17,17,12,11,11,12,12,12,0,12,11,11,11,11,11,5,12,11,11,5,0,0,12,0,0,0,12,0,12,11,11,11,11,6,3,17,3,3,3,3,17,6,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,0,11,0,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,12,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,6,6,3,3,3,3,3,3,3,3,3,3,3,6,6,17,17,3,3,17,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,6,6,3,3,6,6,17,17,3,3,17,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,3,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,11,11,11,12,11,11,11,11,11,11,11,13,3,3,4,13,5,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,17,17,3,8,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,3,12,12,12,11,11,11,11,11,11,0,5,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,12,11,11,11,11,11,11,12,11,11,11,12,11,11,11,11,8,17,17,3,11,11,12,11,11,11,11,12,11,10,11,11,11,11,11,11,11,17,3,11,11,11,11,11,11,11,11,12,11,12,5,11,11,11,11,3,3,11,11,11,11,12,5,11,11,11,11,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["AppData","CACHE_AGE","Data","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","cache","cache","client","data","debug","deref","deref","deref_mut","drop","from","get_json_err","gists","init","into","main","meta","post","posts","proxy","render_html","routes","server","settings","source_code","try_from","try_into","type_id","vzip","AppData","Data","GIST_CACHE_VERSION","GetPost","GetPostLight","GistContent","GistFile","POST_CACHE_VERSION","PostResp","PostUrl","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_query","build_query","cache","client","clone","clone","clone","clone_into","clone_into","clone_into","content","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","drop","drop","drop","drop","drop","drop","file_name","files","fmt","from","from","from","from","from","from","get_gist","get_gist_id","get_html_content","get_post","get_post","get_post_light","get_post_light","gists","html_url","init","init","init","init","init","init","into","into","into","into","into","into","language","migrate","new","posts","raw_url","serialize","serialize","slug","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","username","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostPost","GetPostPostContent","GetPostPostContentBodyModel","GetPostPostContentBodyModelParagraphs","GetPostPostContentBodyModelParagraphsIframe","GetPostPostContentBodyModelParagraphsIframeMediaResource","GetPostPostContentBodyModelParagraphsMarkups","GetPostPostContentBodyModelParagraphsMetadata","GetPostPostCreator","GetPostPostPreviewContent","GetPostPostPreviewImage","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","anchor_type","body_model","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","content","created_at","creator","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","end","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_subtitle","href","href","href","id","id","id","id","iframe","iframe_height","iframe_src","iframe_width","image_id","init","init","init","init","init","init","init","init","init","init","init","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","layout","markups","media_resource","metadata","name","original_height","original_width","paragraphs","post","preview_content","preview_image","reading_time","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","start","subtitle","text","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_slug","user_id","username","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostLightPost","GetPostLightPostCreator","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","creator","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","drop","drop","drop","drop","fmt","fmt","fmt","from","from","from","from","id","init","init","init","init","into","into","into","into","post","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","unique_slug","username","vzip","vzip","vzip","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deref","deref","deref_mut","deref_mut","deserialize","drop","drop","fmt","from","from","git_commit_hash","init","init","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","deref","deref_mut","drop","from","health","init","into","new","try_from","try_into","type_id","vzip","End","Markup","PositionMap","PostitionType","Start","apply_markup","apply_markup","arr","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","default","deref","deref","deref","deref_mut","deref_mut","deref_mut","drop","drop","drop","end","eq","equivalent","from","from","from","gists","init","init","init","insert_if_not_exists","into","into","into","map","markup","p","pos_type","start","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","CACHE_AGE","INDEX","Post","StringUtils","assets","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","by_post_id","data","date","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","drop","drop","drop","drop","drop","from","from","from","from","from","gists","id","index","init","init","init","init","init","into","into","into","into","into","page","paragraphs","preview_img","reading_time","register","register","register","register","render_once","render_once_to","routes","services","slice","substring","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","Proxy","asset","borrow","borrow_mut","by_post_id","deref","deref_mut","drop","from","get_medium_asset","get_page","index","init","into","new","page","try_from","try_into","type_id","vzip","GenerateHTML","STYLE","SYNTAX_SET","SourcegraphQuery","borrow","borrow_mut","code","deref","deref_mut","determine_language","drop","filepath","from","generate","init","into","syntax_highlight","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deref","deref_mut","drop","from","init","into","meta","new","proxy","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","cache","check_url","clone","clone","clone_into","clone_into","debug","deref","deref","deref_mut","deref_mut","deserialize","deserialize","domain","drop","drop","fmt","fmt","from","from","get_ip","init","init","into","into","ip","new","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["libmedium","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post_light","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta::routes","","","","","","","","","","","","","","","","libmedium::post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy::routes","","","","","","","","","","","","","","","","","","","","libmedium::render_html","","","","","","","","","","","","","","","","","","","","","libmedium::routes","","","","","","","","","","","","","","","","","","libmedium::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,1,1,1,9,2,9,0,2,1,1,1,1,1,0,9,1,1,0,0,0,9,0,0,0,2,0,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,9,65,12,10,66,11,9,65,12,10,66,11,65,66,9,9,9,10,11,9,10,11,10,9,65,12,10,66,11,9,65,12,10,66,11,12,10,9,65,12,10,66,11,10,12,11,9,65,12,10,66,11,9,9,10,0,9,0,9,9,12,9,65,12,10,66,11,9,65,12,10,66,11,10,9,9,9,10,12,10,11,9,10,11,9,65,12,10,66,11,9,65,12,10,66,11,9,65,12,10,66,11,11,9,65,12,10,66,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,25,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,19,20,21,22,23,24,25,26,27,28,29,30,29,29,29,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,19,20,21,22,23,24,25,26,27,28,29,30,31,22,19,20,21,22,23,24,25,26,27,28,29,30,19,20,21,22,23,24,25,26,27,28,29,30,31,29,20,22,23,19,27,28,31,23,20,20,20,28,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,31,23,23,21,23,28,19,19,24,30,29,29,29,19,20,21,22,23,24,25,26,27,28,29,30,31,22,26,23,22,29,19,20,21,22,23,24,25,26,27,28,29,30,19,20,21,22,23,24,25,26,27,28,29,30,31,19,20,21,22,23,24,25,26,27,28,29,30,31,22,23,19,20,21,22,23,24,25,26,27,28,29,30,31,29,22,28,19,20,21,22,23,24,25,26,27,28,29,30,31,0,0,0,0,0,0,0,0,0,0,0,32,33,34,35,32,33,34,35,32,33,34,32,33,34,33,32,33,34,35,32,33,34,35,32,33,34,32,33,34,35,32,33,34,32,33,34,35,35,32,33,34,35,32,33,34,35,34,32,33,34,35,32,33,34,32,33,34,35,32,33,34,35,32,33,34,35,33,32,32,33,34,35,0,36,37,36,37,0,36,36,36,37,36,37,36,36,37,36,36,37,36,36,37,36,37,37,0,36,0,36,36,37,36,37,36,37,36,36,37,0,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,46,0,0,0,46,0,43,44,43,46,44,43,46,44,44,43,46,44,43,46,44,43,46,44,43,46,46,43,46,44,43,43,46,44,44,43,46,44,44,43,43,43,43,43,46,44,43,46,44,43,46,44,43,46,44,0,0,0,0,0,52,48,49,50,51,52,48,49,50,51,0,52,52,52,48,49,50,51,52,48,49,50,51,52,48,49,50,51,52,48,49,50,51,52,52,0,52,48,49,50,51,52,48,49,50,51,0,52,52,52,48,49,50,51,52,52,0,0,67,67,52,48,49,50,51,52,48,49,50,51,52,48,49,50,51,52,48,49,50,51,0,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,0,0,0,0,58,58,58,58,58,58,58,58,58,68,58,58,58,58,58,58,58,0,0,61,61,61,61,61,61,61,61,61,61,61,0,61,61,61,61,0,0,63,2,63,2,2,0,63,2,63,2,2,63,2,63,2,63,2,63,63,2,63,2,63,2,63,63,2,63,2,63,2,63,63,2,2,63,2,63,2,63,2,63,2,63,2,63],"f":[0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],0,0,0,0,0,[1,2],[3],[3],[3],[[]],[[],4],0,[[],3],[[]],[[],5],0,0,0,0,0,0,0,0,0,[[],6],[[],6],[[],7],[[]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],8],[[],8],0,0,[9,9],[10,10],[11,11],[[]],[[]],[[]],0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[12]]]],[[],[[6,[10]]]],[3],[3],[3],[3],[3],[3],0,0,[[11,13],14],[[]],[[]],[[]],[[]],[[]],[[]],[[9,15],16],[17,17],[10,15],0,[[9,17],16],0,[[9,17],16],0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],[[]],0,[9],[[],18],0,0,[12,6],[10,6],0,[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],0,[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[19,19],[20,20],[21,21],[22,22],[23,23],[24,24],[25,25],[26,26],[27,27],[28,28],[29,29],[30,30],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[19]]]],[[],[[6,[20]]]],[[],[[6,[21]]]],[[],[[6,[22]]]],[[],[[6,[23]]]],[[],[[6,[24]]]],[[],[[6,[25]]]],[[],[[6,[26]]]],[[],[[6,[27]]]],[[],[[6,[28]]]],[[],[[6,[29]]]],[[],[[6,[30]]]],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],0,[[19,13],14],[[20,13],14],[[21,13],14],[[22,13],14],[[23,13],14],[[24,13],14],[[25,13],14],[[26,13],14],[[27,13],14],[[28,13],14],[[29,13],14],[[30,13],14],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[29,17],0,0,0,0,0,0,0,0,0,0,0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[19,6],[20,6],[21,6],[22,6],[23,6],[24,6],[25,6],[26,6],[27,6],[28,6],[29,6],[30,6],[31,6],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],0,0,[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[32,32],[33,33],[34,34],[[]],[[]],[[]],0,[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[32]]]],[[],[[6,[33]]]],[[],[[6,[34]]]],[3],[3],[3],[3],[[32,13],14],[[33,13],14],[[34,13],14],[[]],[[]],[[]],[[]],0,[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],0,[32,6],[33,6],[34,6],[35,6],[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],0,0,[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],0,[36,36],[[]],[3],[3],[3],[3],[[],[[6,[36]]]],[3],[3],[[36,13],14],[[]],[[]],0,[[],3],[[],3],[[]],[[]],[[37,38]],0,[36,6],[39],[[]],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],0,[[]],[[]],0,[[]],[[]],0,[3],[3],[3],[[]],0,[[],3],[[]],[[],40],[[],6],[[],6],[[],7],[[]],0,0,0,0,0,[[29,41],[[42,[15]]]],[[43,3],15],0,[[]],[[]],[[]],[[]],[[]],[[]],[[],44],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[23,3,45],15],[[46,46],45],[[],45],[[]],[[]],[[]],0,[[],3],[[],3],[[],3],[[44,47,43]],[[]],[[]],[[]],0,0,0,0,[[23,41,3,45],15],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[48,38]],[[49,38]],[[50,38]],[[51,38]],[52,53],[[52,54],[[6,[55]]]],0,[39],[[[56,[3]]],17],[[3,3],17],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],[[],7],[[]],[[]],[[]],[[]],[[]],0,0,[[]],[[]],0,[3],[3],[3],[[]],[[57,17],15],[[57,17,17],15],0,[[],3],[[]],[[],57],0,[[],6],[[],6],[[],7],[[]],0,0,0,0,[[]],[[]],0,[3],[3],[[58,59],60],[3],0,[[]],[[]],[[],3],[[]],[58,15],[[],6],[[],6],[[],7],[[]],0,0,[[]],[[]],[3],[3],[3],[[]],[[],3],[[]],0,[[],61],0,[39],[[],6],[[],6],[[],7],[[]],0,0,[[]],[[]],[[]],[[]],0,[62],[63,63],[2,2],[[]],[[]],0,[3],[3],[3],[3],[[],[[6,[63]]]],[[],[[6,[2]]]],0,[3],[3],[[63,13],14],[[2,13],14],[[]],[[]],[63,15],[[],3],[[],3],[[]],[[]],0,[[],[[6,[2,64]]]],0,0,0,0,[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[]],[[]],0],"p":[[3,"SETTINGS"],[3,"Settings"],[15,"usize"],[3,"JsonConfig"],[6,"Result"],[4,"Result"],[3,"TypeId"],[3,"QueryBody"],[3,"Data"],[3,"GistFile"],[3,"PostUrl"],[3,"GistContent"],[3,"Formatter"],[6,"Result"],[3,"String"],[8,"Future"],[15,"str"],[6,"AppData"],[3,"GetPostPostContentBodyModelParagraphsMetadata"],[3,"GetPostPostContentBodyModelParagraphsIframeMediaResource"],[3,"GetPostPostContentBodyModelParagraphsIframe"],[3,"GetPostPostContentBodyModelParagraphsMarkups"],[3,"GetPostPostContentBodyModelParagraphs"],[3,"GetPostPostContentBodyModel"],[3,"GetPostPostContent"],[3,"GetPostPostPreviewContent"],[3,"GetPostPostPreviewImage"],[3,"GetPostPostCreator"],[3,"GetPostPost"],[3,"ResponseData"],[3,"Variables"],[3,"GetPostLightPostCreator"],[3,"GetPostLightPost"],[3,"ResponseData"],[3,"Variables"],[3,"BuildDetails"],[3,"build_details"],[3,"AppService"],[3,"ServiceConfig"],[3,"Meta"],[4,"Option"],[3,"Vec"],[3,"Markup"],[3,"PositionMap"],[15,"bool"],[4,"PostitionType"],[15,"i64"],[3,"index"],[3,"assets"],[3,"by_post_id"],[3,"page"],[3,"Post"],[6,"RenderResult"],[3,"Buffer"],[4,"RenderError"],[8,"RangeBounds"],[3,"Proxy"],[3,"SourcegraphQuery"],[3,"SyntaxSet"],[3,"SyntaxReference"],[3,"Routes"],[3,"Config"],[3,"Server"],[4,"ConfigError"],[3,"GetPost"],[3,"GetPostLight"],[8,"StringUtils"],[8,"GenerateHTML"]]}\ +"libmedium":{"doc":"","t":[6,17,3,17,17,17,17,3,3,17,17,12,11,11,12,12,12,0,12,11,11,11,11,11,5,12,11,11,5,0,0,12,0,0,0,12,0,12,11,11,11,11,6,3,17,3,3,3,3,17,6,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,0,11,0,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,12,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,6,6,3,3,3,3,3,3,3,3,3,3,3,6,6,17,17,3,3,17,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,6,6,3,3,6,6,17,17,3,3,17,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,3,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,11,11,11,12,11,11,11,11,11,11,11,13,3,3,4,13,5,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,17,17,3,8,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,3,12,12,12,11,11,11,11,11,11,0,5,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,12,11,11,11,11,11,11,12,11,11,11,12,11,11,11,11,8,17,17,3,11,11,12,11,11,11,11,12,11,10,11,11,11,11,11,11,11,17,3,11,11,11,11,11,11,11,11,12,11,12,5,11,11,11,11,3,3,11,11,11,11,12,5,11,11,11,11,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["AppData","CACHE_AGE","Data","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","cache","cache","client","data","debug","deref","deref","deref_mut","drop","from","get_json_err","gists","init","into","main","meta","post","posts","proxy","render_html","routes","server","settings","source_code","try_from","try_into","type_id","vzip","AppData","Data","GIST_CACHE_VERSION","GetPost","GetPostLight","GistContent","GistFile","POST_CACHE_VERSION","PostResp","PostUrl","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_query","build_query","cache","client","clone","clone","clone","clone_into","clone_into","clone_into","content","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","drop","drop","drop","drop","drop","drop","file_name","files","fmt","from","from","from","from","from","from","get_gist","get_gist_id","get_html_content","get_post","get_post","get_post_light","get_post_light","gists","html_url","init","init","init","init","init","init","into","into","into","into","into","into","language","migrate","new","posts","raw_url","serialize","serialize","slug","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","username","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostPost","GetPostPostContent","GetPostPostContentBodyModel","GetPostPostContentBodyModelParagraphs","GetPostPostContentBodyModelParagraphsIframe","GetPostPostContentBodyModelParagraphsIframeMediaResource","GetPostPostContentBodyModelParagraphsMarkups","GetPostPostContentBodyModelParagraphsMetadata","GetPostPostCreator","GetPostPostPreviewContent","GetPostPostPreviewImage","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","anchor_type","body_model","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","content","created_at","creator","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","end","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_subtitle","href","href","href","id","id","id","id","iframe","iframe_height","iframe_src","iframe_width","image_id","init","init","init","init","init","init","init","init","init","init","init","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","layout","markups","media_resource","metadata","name","original_height","original_width","paragraphs","post","preview_content","preview_image","reading_time","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","start","subtitle","text","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_slug","user_id","username","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostLightPost","GetPostLightPostCreator","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","creator","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","drop","drop","drop","drop","fmt","fmt","fmt","from","from","from","from","id","init","init","init","init","into","into","into","into","post","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","unique_slug","username","vzip","vzip","vzip","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deref","deref","deref_mut","deref_mut","deserialize","drop","drop","fmt","from","from","git_commit_hash","init","init","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","deref","deref_mut","drop","from","health","init","into","new","try_from","try_into","type_id","vzip","End","Markup","PositionMap","PostitionType","Start","apply_markup","apply_markup","arr","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","default","deref","deref","deref","deref_mut","deref_mut","deref_mut","drop","drop","drop","end","eq","equivalent","from","from","from","gists","init","init","init","insert_if_not_exists","into","into","into","map","markup","p","pos_type","start","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","CACHE_AGE","INDEX","Post","StringUtils","assets","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","by_post_id","data","date","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","drop","drop","drop","drop","drop","from","from","from","from","from","gists","id","index","init","init","init","init","init","into","into","into","into","into","page","paragraphs","preview_img","reading_time","register","register","register","register","render_once","render_once_to","routes","services","slice","substring","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","Proxy","asset","borrow","borrow_mut","by_post_id","deref","deref_mut","drop","from","get_medium_asset","get_page","index","init","into","new","page","try_from","try_into","type_id","vzip","GenerateHTML","STYLE","SYNTAX_SET","SourcegraphQuery","borrow","borrow_mut","code","deref","deref_mut","determine_language","drop","filepath","from","generate","init","into","syntax_highlight","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deref","deref_mut","drop","from","init","into","meta","new","proxy","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","cache","check_url","clone","clone","clone_into","clone_into","debug","deref","deref","deref_mut","deref_mut","deserialize","deserialize","domain","drop","drop","fmt","fmt","from","from","get_ip","init","init","into","into","ip","new","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["libmedium","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post_light","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta::routes","","","","","","","","","","","","","","","","libmedium::post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy::routes","","","","","","","","","","","","","","","","","","","","libmedium::render_html","","","","","","","","","","","","","","","","","","","","","libmedium::routes","","","","","","","","","","","","","","","","","","libmedium::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,1,1,1,9,2,9,0,2,1,1,1,1,1,0,9,1,1,0,0,0,9,0,0,0,2,0,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,9,64,12,10,65,11,9,64,12,10,65,11,64,65,9,9,9,10,11,9,10,11,10,9,64,12,10,65,11,9,64,12,10,65,11,12,10,9,64,12,10,65,11,10,12,11,9,64,12,10,65,11,9,9,10,0,9,0,9,9,12,9,64,12,10,65,11,9,64,12,10,65,11,10,9,9,9,10,12,10,11,9,10,11,9,64,12,10,65,11,9,64,12,10,65,11,9,64,12,10,65,11,11,9,64,12,10,65,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,25,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,19,20,21,22,23,24,25,26,27,28,17,29,17,17,17,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,19,20,21,22,23,24,25,26,27,28,17,29,30,22,19,20,21,22,23,24,25,26,27,28,17,29,19,20,21,22,23,24,25,26,27,28,17,29,30,17,20,22,23,19,27,28,30,23,20,20,20,28,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,30,23,23,21,23,28,19,19,24,29,17,17,17,19,20,21,22,23,24,25,26,27,28,17,29,30,22,26,23,22,17,19,20,21,22,23,24,25,26,27,28,17,29,19,20,21,22,23,24,25,26,27,28,17,29,30,19,20,21,22,23,24,25,26,27,28,17,29,30,22,23,19,20,21,22,23,24,25,26,27,28,17,29,30,17,22,28,19,20,21,22,23,24,25,26,27,28,17,29,30,0,0,0,0,0,0,0,0,0,0,0,31,32,33,34,31,32,33,34,31,32,33,31,32,33,32,31,32,33,34,31,32,33,34,31,32,33,31,32,33,34,31,32,33,31,32,33,34,34,31,32,33,34,31,32,33,34,33,31,32,33,34,31,32,33,31,32,33,34,31,32,33,34,31,32,33,34,32,31,31,32,33,34,0,35,36,35,36,0,35,35,35,36,35,36,35,35,36,35,35,36,35,35,36,35,36,36,0,35,0,35,35,36,35,36,35,36,35,35,36,0,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,45,0,0,0,45,0,42,43,42,45,43,42,45,43,43,42,45,43,42,45,43,42,45,43,42,45,45,42,45,43,42,42,45,43,43,42,45,43,43,42,42,42,42,42,45,43,42,45,43,42,45,43,42,45,43,0,0,0,0,0,51,47,48,49,50,51,47,48,49,50,0,51,51,51,47,48,49,50,51,47,48,49,50,51,47,48,49,50,51,47,48,49,50,51,51,0,51,47,48,49,50,51,47,48,49,50,0,51,51,51,47,48,49,50,51,51,0,0,66,66,51,47,48,49,50,51,47,48,49,50,51,47,48,49,50,51,47,48,49,50,0,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,0,0,0,0,57,57,57,57,57,57,57,57,57,67,57,57,57,57,57,57,57,0,0,60,60,60,60,60,60,60,60,60,60,60,0,60,60,60,60,0,0,62,2,62,2,2,0,62,2,62,2,2,62,2,62,2,62,2,62,62,2,62,2,62,2,62,62,2,62,2,62,2,62,62,2,2,62,2,62,2,62,2,62,2,62,2,62],"f":[0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],0,0,0,0,0,[1,2],[3],[3],[3],[[]],[[],4],0,[[],3],[[]],[[],5],0,0,0,0,0,0,0,0,0,[[],6],[[],6],[[],7],[[]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],8],[[],8],0,0,[9,9],[10,10],[11,11],[[]],[[]],[[]],0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[12]]]],[[],[[6,[10]]]],[3],[3],[3],[3],[3],[3],0,0,[[11,13],14],[[]],[[]],[[]],[[]],[[]],[[]],[[9,15]],[16,16],[10,15],0,[[9,16],17],0,[[9,16],11],0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],[[]],0,[9],[[],18],0,0,[12,6],[10,6],0,[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],0,[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[19,19],[20,20],[21,21],[22,22],[23,23],[24,24],[25,25],[26,26],[27,27],[28,28],[17,17],[29,29],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[19]]]],[[],[[6,[20]]]],[[],[[6,[21]]]],[[],[[6,[22]]]],[[],[[6,[23]]]],[[],[[6,[24]]]],[[],[[6,[25]]]],[[],[[6,[26]]]],[[],[[6,[27]]]],[[],[[6,[28]]]],[[],[[6,[17]]]],[[],[[6,[29]]]],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],0,[[19,13],14],[[20,13],14],[[21,13],14],[[22,13],14],[[23,13],14],[[24,13],14],[[25,13],14],[[26,13],14],[[27,13],14],[[28,13],14],[[17,13],14],[[29,13],14],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[17,16],0,0,0,0,0,0,0,0,0,0,0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[19,6],[20,6],[21,6],[22,6],[23,6],[24,6],[25,6],[26,6],[27,6],[28,6],[17,6],[29,6],[30,6],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],0,0,[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[31,31],[32,32],[33,33],[[]],[[]],[[]],0,[3],[3],[3],[3],[3],[3],[3],[3],[[],[[6,[31]]]],[[],[[6,[32]]]],[[],[[6,[33]]]],[3],[3],[3],[3],[[31,13],14],[[32,13],14],[[33,13],14],[[]],[[]],[[]],[[]],0,[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],0,[31,6],[32,6],[33,6],[34,6],[[]],[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],0,0,[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],0,[35,35],[[]],[3],[3],[3],[3],[[],[[6,[35]]]],[3],[3],[[35,13],14],[[]],[[]],0,[[],3],[[],3],[[]],[[]],[[36,37]],0,[35,6],[38],[[]],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],0,[[]],[[]],0,[[]],[[]],0,[3],[3],[3],[[]],0,[[],3],[[]],[[],39],[[],6],[[],6],[[],7],[[]],0,0,0,0,0,[[17,40],[[41,[15]]]],[[42,3],15],0,[[]],[[]],[[]],[[]],[[]],[[]],[[],43],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[23,3,44],15],[[45,45],44],[[],44],[[]],[[]],[[]],0,[[],3],[[],3],[[],3],[[43,46,42]],[[]],[[]],[[]],0,0,0,0,[[23,40,3,44],15],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[3],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],3],[[],3],[[],3],[[],3],[[],3],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[47,37]],[[48,37]],[[49,37]],[[50,37]],[51,52],[[51,53],[[6,[54]]]],0,[38],[[[55,[3]]],16],[[3,3],16],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[],7],[[],7],[[],7],[[]],[[]],[[]],[[]],[[]],0,0,[[]],[[]],0,[3],[3],[3],[[]],[[56,16],15],[[56,16,16],15],0,[[],3],[[]],[[],56],0,[[],6],[[],6],[[],7],[[]],0,0,0,0,[[]],[[]],0,[3],[3],[[57,58],59],[3],0,[[]],[[]],[[],3],[[]],[57,15],[[],6],[[],6],[[],7],[[]],0,0,[[]],[[]],[3],[3],[3],[[]],[[],3],[[]],0,[[],60],0,[38],[[],6],[[],6],[[],7],[[]],0,0,[[]],[[]],[[]],[[]],0,[61],[62,62],[2,2],[[]],[[]],0,[3],[3],[3],[3],[[],[[6,[62]]]],[[],[[6,[2]]]],0,[3],[3],[[62,13],14],[[2,13],14],[[]],[[]],[62,15],[[],3],[[],3],[[]],[[]],0,[[],[[6,[2,63]]]],0,0,0,0,[[]],[[]],[[],6],[[],6],[[],6],[[],6],[[],7],[[],7],[[]],[[]],0],"p":[[3,"SETTINGS"],[3,"Settings"],[15,"usize"],[3,"JsonConfig"],[6,"Result"],[4,"Result"],[3,"TypeId"],[3,"QueryBody"],[3,"Data"],[3,"GistFile"],[3,"PostUrl"],[3,"GistContent"],[3,"Formatter"],[6,"Result"],[3,"String"],[15,"str"],[3,"GetPostPost"],[6,"AppData"],[3,"GetPostPostContentBodyModelParagraphsMetadata"],[3,"GetPostPostContentBodyModelParagraphsIframeMediaResource"],[3,"GetPostPostContentBodyModelParagraphsIframe"],[3,"GetPostPostContentBodyModelParagraphsMarkups"],[3,"GetPostPostContentBodyModelParagraphs"],[3,"GetPostPostContentBodyModel"],[3,"GetPostPostContent"],[3,"GetPostPostPreviewContent"],[3,"GetPostPostPreviewImage"],[3,"GetPostPostCreator"],[3,"ResponseData"],[3,"Variables"],[3,"GetPostLightPostCreator"],[3,"GetPostLightPost"],[3,"ResponseData"],[3,"Variables"],[3,"BuildDetails"],[3,"build_details"],[3,"AppService"],[3,"ServiceConfig"],[3,"Meta"],[4,"Option"],[3,"Vec"],[3,"Markup"],[3,"PositionMap"],[15,"bool"],[4,"PostitionType"],[15,"i64"],[3,"index"],[3,"assets"],[3,"by_post_id"],[3,"page"],[3,"Post"],[6,"RenderResult"],[3,"Buffer"],[4,"RenderError"],[8,"RangeBounds"],[3,"Proxy"],[3,"SourcegraphQuery"],[3,"SyntaxSet"],[3,"SyntaxReference"],[3,"Routes"],[3,"Config"],[3,"Server"],[4,"ConfigError"],[3,"GetPost"],[3,"GetPostLight"],[8,"StringUtils"],[8,"GenerateHTML"]]}\ }'); if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)}; if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex}; diff --git a/search.js b/search.js index d35a7db..f0ccdfb 100644 --- a/search.js +++ b/search.js @@ -1 +1 @@ -"use strict";(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("titles").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}else if(nb!==0){printTab(0)}}const levenshtein_row2=[];function levenshtein(s1,s2){if(s1===s2){return 0}const s1_len=s1.length,s2_len=s2.length;if(s1_len&&s2_len){let i1=0,i2=0,a,b,c,c2;const row=levenshtein_row2;while(i1-".indexOf(c)!==-1}function isStopCharacter(c){return isWhitespace(c)||isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){for(let i=0,len=itemTypes.length;i0){throw new Error("Cannot use literal search when there is more than one element")}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw new Error("Unclosed `\"`")}else if(parserState.userQuery[end]!=="\""){throw new Error(`Unexpected \`${parserState.userQuery[end]}\` in a string element`)}else if(start===end){throw new Error("Cannot have empty string element")}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||isWhitespaceCharacter(c)}function isWhitespaceCharacter(c){return c===" "||c==="\t"}function createQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw new Error("You cannot have more than one element if you use quotes")}const pathSegments=name.split("::");if(pathSegments.length>1){for(let i=0,len=pathSegments.length;i=end){throw new Error("Found generics without a path")}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;while(parserState.pos"){extra="`<`"}else if(endChar===""){extra="`->`"}throw new Error("Unexpected `"+c+"` after "+extra)}if(!foundStopChar){if(endChar!==""){throw new Error(`Expected \`,\`, \` \` or \`${endChar}\`, found \`${c}\``)}throw new Error(`Expected \`,\` or \` \`, found \`${c}\``)}const posBefore=parserState.pos;getNextElem(query,parserState,elems,endChar===">");if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}parserState.pos+=1}function checkExtraTypeFilterCharacters(parserState){const query=parserState.userQuery;for(let pos=0;pos"){if(isReturnArrow(parserState)){break}throw new Error(`Unexpected \`${c}\` (did you mean \`->\`?)`)}throw new Error(`Unexpected \`${c}\``)}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw new Error("Unexpected `:`")}if(query.elems.length===0){throw new Error("Expected type filter before `:`")}else if(query.elems.length!==1||parserState.totalElems!==1){throw new Error("Unexpected `:`")}else if(query.literalSearch){throw new Error("You cannot use quotes on type filter")}checkExtraTypeFilterCharacters(parserState);parserState.typeFilter=query.elems.pop().name;parserState.pos+=1;parserState.totalElems=0;query.literalSearch=false;foundStopChar=true;continue}if(!foundStopChar){if(parserState.typeFilter!==null){throw new Error(`Expected \`,\`, \` \` or \`->\`, found \`${c}\``)}throw new Error(`Expected \`,\`, \` \`, \`:\` or \`->\`, found \`${c}\``)}before=query.elems.length;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}while(parserState.pos`")}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),typeFilter:NO_TYPE_FILTER,elems:[],returned:[],foundElems:0,literalSearch:false,error:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="All crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);if(parserState.typeFilter!==null){let typeFilter=parserState.typeFilter;if(typeFilter==="const"){typeFilter="constant"}query.typeFilter=itemTypeFromName(typeFilter)}}catch(err){query=newParsedQuery(userQuery);query.error=err.message;query.typeFilter=-1;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others={},results_in_args={},results_returned={};function transformResults(results){const duplicates={};const out=[];for(const result of results){if(result.id>-1){const obj=searchIndex[result.id];obj.lev=result.lev;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates[obj.fullPath]){continue}duplicates[obj.fullPath]=true;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){const userQuery=parsedQuery.userQuery;const ar=[];for(const entry in results){if(hasOwnPropertyRustdoc(results,entry)){const result=results[entry];result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};ar.push(result)}}results=ar;if(results.length===0){return[]}results.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.lev);b=(bbb.lev);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of results){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(results)}function checkGenerics(row,elem,defaultLev){if(row.generics.length===0){return elem.generics.length===0?defaultLev:MAX_LEV_DISTANCE+1}else if(row.generics.length>0&&row.generics[0].name===null){return checkGenerics(row.generics[0],elem,defaultLev)}let elem_name;if(elem.generics.length>0&&row.generics.length>=elem.generics.length){const elems=Object.create(null);for(const entry of row.generics){elem_name=entry.name;if(elem_name===""){if(checkGenerics(entry,elem,MAX_LEV_DISTANCE+1)!==0){return MAX_LEV_DISTANCE+1}continue}if(elems[elem_name]===undefined){elems[elem_name]=0}elems[elem_name]+=1}for(const generic of elem.generics){let match=null;if(elems[generic.name]){match=generic.name}else{for(elem_name in elems){if(!hasOwnPropertyRustdoc(elems,elem_name)){continue}if(elem_name===generic){match=elem_name;break}}}if(match===null){return MAX_LEV_DISTANCE+1}elems[match]-=1;if(elems[match]===0){delete elems[match]}}return 0}return MAX_LEV_DISTANCE+1}function checkIfInGenerics(row,elem){let lev=MAX_LEV_DISTANCE+1;for(const entry of row.generics){lev=Math.min(checkType(entry,elem,true),lev);if(lev===0){break}}return lev}function checkType(row,elem,literalSearch){if(row.name===null){if(row.generics.length>0){return checkIfInGenerics(row,elem)}return MAX_LEV_DISTANCE+1}let lev=levenshtein(row.name,elem.name);if(literalSearch){if(lev!==0){if(elem.generics.length===0){const checkGeneric=row.generics.length>0;if(checkGeneric&&row.generics.findIndex(tmp_elem=>tmp_elem.name===elem.name)!==-1){return 0}}return MAX_LEV_DISTANCE+1}else if(elem.generics.length>0){return checkGenerics(row,elem,MAX_LEV_DISTANCE+1)}return 0}else if(row.generics.length>0){if(elem.generics.length===0){if(lev===0){return 0}lev=checkIfInGenerics(row,elem);return lev+0.5}else if(lev>MAX_LEV_DISTANCE){return checkIfInGenerics(row,elem)}else{const tmp_lev=checkGenerics(row,elem,lev);if(tmp_lev>MAX_LEV_DISTANCE){return MAX_LEV_DISTANCE+1}return(tmp_lev+lev)/2}}else if(elem.generics.length>0){return MAX_LEV_DISTANCE+1}return lev}function findArg(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.inputs&&row.type.inputs.length>0){for(const input of row.type.inputs){if(!typePassesFilter(typeFilter,input.ty)){continue}lev=Math.min(lev,checkType(input,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkReturned(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.output.length>0){const ret=row.type.output;for(const ret_ty of ret){if(!typePassesFilter(typeFilter,ret_ty.ty)){continue}lev=Math.min(lev,checkType(ret_ty,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkPath(contains,ty){if(contains.length===0){return 0}let ret_lev=MAX_LEV_DISTANCE+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;if(clength>length){return MAX_LEV_DISTANCE+1}for(let i=0;ilength){break}let lev_total=0;let aborted=false;for(let x=0;xMAX_LEV_DISTANCE){aborted=true;break}lev_total+=lev}if(!aborted){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES[filterCrates]&&ALIASES[filterCrates][lowerQuery]){const query_aliases=ALIASES[filterCrates][lowerQuery];for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{Object.keys(ALIASES).forEach(crate=>{if(ALIASES[crate][lowerQuery]){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=ALIASES[crate][lowerQuery];for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}})}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,lev){if(lev===0||(!parsedQuery.literalSearch&&lev<=MAX_LEV_DISTANCE)){if(results[fullId]!==undefined){const result=results[fullId];if(result.dontValidate||result.lev<=lev){return}}results[fullId]={id:id,index:index,dontValidate:parsedQuery.literalSearch,lev:lev,}}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let lev,lev_add=0,index=-1;const fullId=row.id;const in_args=findArg(row,elem,parsedQuery.typeFilter);const returned=checkReturned(row,elem,parsedQuery.typeFilter);addIntoResults(results_in_args,fullId,pos,index,in_args);addIntoResults(results_returned,fullId,pos,index,returned);if(!typePassesFilter(parsedQuery.typeFilter,row.ty)){return}const searchWord=searchWords[pos];if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,-1,0)}return}if(elem.name.length===0){if(row.type!==null){lev=checkGenerics(row.type,elem,MAX_LEV_DISTANCE+1);addIntoResults(results_others,fullId,pos,index,lev)}return}if(elem.fullPath.length>1){lev=checkPath(elem.pathWithoutLast,row);if(lev>MAX_LEV_DISTANCE||(parsedQuery.literalSearch&&lev!==0)){return}else if(lev>0){lev_add=lev/10}}if(searchWord.indexOf(elem.pathLast)>-1||row.normalizedName.indexOf(elem.pathLast)>-1){index=row.normalizedName.indexOf(elem.pathLast)}lev=levenshtein(searchWord,elem.pathLast);if(lev>0&&elem.pathLast.length>2&&searchWord.indexOf(elem.pathLast)>-1){if(elem.pathLast.length<6){lev=1}else{lev=0}}lev+=lev_add;if(lev>MAX_LEV_DISTANCE){return}else if(index!==-1&&elem.fullPath.length<2){lev-=1}if(lev<0){lev=0}addIntoResults(results_others,fullId,pos,index,lev)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let totalLev=0;let nbLev=0;function checkArgs(elems,callback){for(const elem of elems){const lev=callback(row,elem,NO_TYPE_FILTER);if(lev<=1){nbLev+=1;totalLev+=lev}else{return false}}return true}if(!checkArgs(parsedQuery.elems,findArg)){return}if(!checkArgs(parsedQuery.returned,checkReturned)){return}if(nbLev===0){return}const lev=Math.round(totalLev/nbLev);addIntoResults(results,row.id,pos,0,lev)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||levenshtein(name,key)<=MAX_LEV_DISTANCE)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#titles > button").item(searchState.currentTab);if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function escape(content){const h1=document.createElement("h1");h1.textContent=content;return h1.innerHTML}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];length+=1;let extra="";if(type==="primitive"){extra=" (primitive type)"}else if(type==="keyword"){extra=" (keyword)"}const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const wrapper=document.createElement("div");const resultName=document.createElement("div");resultName.className="result-name";if(item.is_alias){const alias=document.createElement("span");alias.className="alias";const bold=document.createElement("b");bold.innerText=item.alias;alias.appendChild(bold);alias.insertAdjacentHTML("beforeend"," - see ");resultName.appendChild(alias)}resultName.insertAdjacentHTML("beforeend",item.displayPath+""+name+extra+"");wrapper.appendChild(resultName);const description=document.createElement("div");description.className="desc";const spanDesc=document.createElement("span");spanDesc.insertAdjacentHTML("beforeend",item.desc);description.appendChild(spanDesc);wrapper.appendChild(description);link.appendChild(wrapper);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,length]}function makeTabHeader(tabNb,text,nbElems){if(searchState.currentTab===tabNb){return""}return""}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"&&(!search.firstChild||search.firstChild.innerText!==searchState.loadingText))){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=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=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="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in "}let typeFilter="";if(results.query.typeFilter!==NO_TYPE_FILTER){typeFilter=" (type: "+escape(itemTypes[results.query.typeFilter])+")"}let output="
"+`

Results for ${escape(results.query.userQuery)}`+`${typeFilter}

${crates}
`;if(results.query.error!==null){output+=`

Query parser error: "${results.query.error}".

`;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}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("titles").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 search(e,forced){const params=searchState.getQueryStringParams();const query=parseQuery(searchState.input.value.trim());if(e){e.preventDefault()}if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}let filterCrates=getFilterCrates();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";if(browserSupportsHistoryApi()){const newURL=buildUrl(query.original,filterCrates);if(!history.state&&!params.search){history.pushState(null,"",newURL)}else{history.replaceState(null,"",newURL)}}showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;return types.map(type=>{let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}return{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:generics,}})}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){const pathIndex=functionSearchType[INPUTS_DATA];inputs=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){const pathIndex=functionSearchType[OUTPUT_DATA];output=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}return{inputs,output,}}function buildIndex(rawSearchIndex){searchIndex=[];const searchWords=[];let i,word;let currentIndex=0;let id=0;for(const crate in rawSearchIndex){if(!hasOwnPropertyRustdoc(rawSearchIndex,crate)){continue}let crateSize=0;const crateCorpus=rawSearchIndex[crate];searchWords.push(crate);const crateRow={crate:crate,ty:1,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=crateCorpus.q;const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;for(i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){ALIASES[crate]=Object.create(null);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}if(!hasOwnPropertyRustdoc(ALIASES[crate],alias_name)){ALIASES[crate][alias_name]=[]}for(const local_alias of aliases[alias_name]){ALIASES[crate][alias_name].push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}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){if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}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;search(e)}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 params=searchState.getQueryStringParams();const query=searchState.input.value.trim();if(!history.state&&!params.search){history.pushState(null,"",buildUrl(query,null))}else{history.replaceState(null,"",buildUrl(query,null))}}currentResults=null;search(undefined,true)}const searchWords=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}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file +"use strict";(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("titles").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}else if(nb!==0){printTab(0)}}const levenshtein_row2=[];function levenshtein(s1,s2){if(s1===s2){return 0}const s1_len=s1.length,s2_len=s2.length;if(s1_len&&s2_len){let i1=0,i2=0,a,b,c,c2;const row=levenshtein_row2;while(i1-".indexOf(c)!==-1}function isStopCharacter(c){return isWhitespace(c)||isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){for(let i=0,len=itemTypes.length;i0){throw new Error("Cannot use literal search when there is more than one element")}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw new Error("Unclosed `\"`")}else if(parserState.userQuery[end]!=="\""){throw new Error(`Unexpected \`${parserState.userQuery[end]}\` in a string element`)}else if(start===end){throw new Error("Cannot have empty string element")}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||isWhitespaceCharacter(c)}function isWhitespaceCharacter(c){return c===" "||c==="\t"}function createQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw new Error("You cannot have more than one element if you use quotes")}const pathSegments=name.split("::");if(pathSegments.length>1){for(let i=0,len=pathSegments.length;i=end){throw new Error("Found generics without a path")}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;while(parserState.pos"){extra="`<`"}else if(endChar===""){extra="`->`"}throw new Error("Unexpected `"+c+"` after "+extra)}if(!foundStopChar){if(endChar!==""){throw new Error(`Expected \`,\`, \` \` or \`${endChar}\`, found \`${c}\``)}throw new Error(`Expected \`,\` or \` \`, found \`${c}\``)}const posBefore=parserState.pos;getNextElem(query,parserState,elems,endChar===">");if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}parserState.pos+=1}function checkExtraTypeFilterCharacters(parserState){const query=parserState.userQuery;for(let pos=0;pos"){if(isReturnArrow(parserState)){break}throw new Error(`Unexpected \`${c}\` (did you mean \`->\`?)`)}throw new Error(`Unexpected \`${c}\``)}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw new Error("Unexpected `:`")}if(query.elems.length===0){throw new Error("Expected type filter before `:`")}else if(query.elems.length!==1||parserState.totalElems!==1){throw new Error("Unexpected `:`")}else if(query.literalSearch){throw new Error("You cannot use quotes on type filter")}checkExtraTypeFilterCharacters(parserState);parserState.typeFilter=query.elems.pop().name;parserState.pos+=1;parserState.totalElems=0;query.literalSearch=false;foundStopChar=true;continue}if(!foundStopChar){if(parserState.typeFilter!==null){throw new Error(`Expected \`,\`, \` \` or \`->\`, found \`${c}\``)}throw new Error(`Expected \`,\`, \` \`, \`:\` or \`->\`, found \`${c}\``)}before=query.elems.length;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}while(parserState.pos`")}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),typeFilter:NO_TYPE_FILTER,elems:[],returned:[],foundElems:0,literalSearch:false,error:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);if(parserState.typeFilter!==null){let typeFilter=parserState.typeFilter;if(typeFilter==="const"){typeFilter="constant"}query.typeFilter=itemTypeFromName(typeFilter)}}catch(err){query=newParsedQuery(userQuery);query.error=err.message;query.typeFilter=-1;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others={},results_in_args={},results_returned={};function transformResults(results){const duplicates={};const out=[];for(const result of results){if(result.id>-1){const obj=searchIndex[result.id];obj.lev=result.lev;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates[obj.fullPath]){continue}duplicates[obj.fullPath]=true;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){const userQuery=parsedQuery.userQuery;const ar=[];for(const entry in results){if(hasOwnPropertyRustdoc(results,entry)){const result=results[entry];result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};ar.push(result)}}results=ar;if(results.length===0){return[]}results.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.lev);b=(bbb.lev);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of results){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(results)}function checkGenerics(row,elem,defaultLev){if(row.generics.length===0){return elem.generics.length===0?defaultLev:MAX_LEV_DISTANCE+1}else if(row.generics.length>0&&row.generics[0].name===null){return checkGenerics(row.generics[0],elem,defaultLev)}let elem_name;if(elem.generics.length>0&&row.generics.length>=elem.generics.length){const elems=Object.create(null);for(const entry of row.generics){elem_name=entry.name;if(elem_name===""){if(checkGenerics(entry,elem,MAX_LEV_DISTANCE+1)!==0){return MAX_LEV_DISTANCE+1}continue}if(elems[elem_name]===undefined){elems[elem_name]=0}elems[elem_name]+=1}for(const generic of elem.generics){let match=null;if(elems[generic.name]){match=generic.name}else{for(elem_name in elems){if(!hasOwnPropertyRustdoc(elems,elem_name)){continue}if(elem_name===generic){match=elem_name;break}}}if(match===null){return MAX_LEV_DISTANCE+1}elems[match]-=1;if(elems[match]===0){delete elems[match]}}return 0}return MAX_LEV_DISTANCE+1}function checkIfInGenerics(row,elem){let lev=MAX_LEV_DISTANCE+1;for(const entry of row.generics){lev=Math.min(checkType(entry,elem,true),lev);if(lev===0){break}}return lev}function checkType(row,elem,literalSearch){if(row.name===null){if(row.generics.length>0){return checkIfInGenerics(row,elem)}return MAX_LEV_DISTANCE+1}let lev=levenshtein(row.name,elem.name);if(literalSearch){if(lev!==0){if(elem.generics.length===0){const checkGeneric=row.generics.length>0;if(checkGeneric&&row.generics.findIndex(tmp_elem=>tmp_elem.name===elem.name)!==-1){return 0}}return MAX_LEV_DISTANCE+1}else if(elem.generics.length>0){return checkGenerics(row,elem,MAX_LEV_DISTANCE+1)}return 0}else if(row.generics.length>0){if(elem.generics.length===0){if(lev===0){return 0}lev=checkIfInGenerics(row,elem);return lev+0.5}else if(lev>MAX_LEV_DISTANCE){return checkIfInGenerics(row,elem)}else{const tmp_lev=checkGenerics(row,elem,lev);if(tmp_lev>MAX_LEV_DISTANCE){return MAX_LEV_DISTANCE+1}return(tmp_lev+lev)/2}}else if(elem.generics.length>0){return MAX_LEV_DISTANCE+1}return lev}function findArg(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.inputs&&row.type.inputs.length>0){for(const input of row.type.inputs){if(!typePassesFilter(typeFilter,input.ty)){continue}lev=Math.min(lev,checkType(input,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkReturned(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.output.length>0){const ret=row.type.output;for(const ret_ty of ret){if(!typePassesFilter(typeFilter,ret_ty.ty)){continue}lev=Math.min(lev,checkType(ret_ty,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkPath(contains,ty){if(contains.length===0){return 0}let ret_lev=MAX_LEV_DISTANCE+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;if(clength>length){return MAX_LEV_DISTANCE+1}for(let i=0;ilength){break}let lev_total=0;let aborted=false;for(let x=0;xMAX_LEV_DISTANCE){aborted=true;break}lev_total+=lev}if(!aborted){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES[filterCrates]&&ALIASES[filterCrates][lowerQuery]){const query_aliases=ALIASES[filterCrates][lowerQuery];for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{Object.keys(ALIASES).forEach(crate=>{if(ALIASES[crate][lowerQuery]){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=ALIASES[crate][lowerQuery];for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}})}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,lev){if(lev===0||(!parsedQuery.literalSearch&&lev<=MAX_LEV_DISTANCE)){if(results[fullId]!==undefined){const result=results[fullId];if(result.dontValidate||result.lev<=lev){return}}results[fullId]={id:id,index:index,dontValidate:parsedQuery.literalSearch,lev:lev,}}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let lev,lev_add=0,index=-1;const fullId=row.id;const in_args=findArg(row,elem,parsedQuery.typeFilter);const returned=checkReturned(row,elem,parsedQuery.typeFilter);addIntoResults(results_in_args,fullId,pos,index,in_args);addIntoResults(results_returned,fullId,pos,index,returned);if(!typePassesFilter(parsedQuery.typeFilter,row.ty)){return}const searchWord=searchWords[pos];if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,-1,0)}return}if(elem.name.length===0){if(row.type!==null){lev=checkGenerics(row.type,elem,MAX_LEV_DISTANCE+1);addIntoResults(results_others,fullId,pos,index,lev)}return}if(elem.fullPath.length>1){lev=checkPath(elem.pathWithoutLast,row);if(lev>MAX_LEV_DISTANCE||(parsedQuery.literalSearch&&lev!==0)){return}else if(lev>0){lev_add=lev/10}}if(searchWord.indexOf(elem.pathLast)>-1||row.normalizedName.indexOf(elem.pathLast)>-1){index=row.normalizedName.indexOf(elem.pathLast)}lev=levenshtein(searchWord,elem.pathLast);if(lev>0&&elem.pathLast.length>2&&searchWord.indexOf(elem.pathLast)>-1){if(elem.pathLast.length<6){lev=1}else{lev=0}}lev+=lev_add;if(lev>MAX_LEV_DISTANCE){return}else if(index!==-1&&elem.fullPath.length<2){lev-=1}if(lev<0){lev=0}addIntoResults(results_others,fullId,pos,index,lev)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let totalLev=0;let nbLev=0;function checkArgs(elems,callback){for(const elem of elems){const lev=callback(row,elem,NO_TYPE_FILTER);if(lev<=1){nbLev+=1;totalLev+=lev}else{return false}}return true}if(!checkArgs(parsedQuery.elems,findArg)){return}if(!checkArgs(parsedQuery.returned,checkReturned)){return}if(nbLev===0){return}const lev=Math.round(totalLev/nbLev);addIntoResults(results,row.id,pos,0,lev)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||levenshtein(name,key)<=MAX_LEV_DISTANCE)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#titles > button").item(searchState.currentTab);if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];length+=1;let extra="";if(type==="primitive"){extra=" (primitive type)"}else if(type==="keyword"){extra=" (keyword)"}const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const wrapper=document.createElement("div");const resultName=document.createElement("div");resultName.className="result-name";if(item.is_alias){const alias=document.createElement("span");alias.className="alias";const bold=document.createElement("b");bold.innerText=item.alias;alias.appendChild(bold);alias.insertAdjacentHTML("beforeend"," - see ");resultName.appendChild(alias)}resultName.insertAdjacentHTML("beforeend",item.displayPath+""+name+extra+"");wrapper.appendChild(resultName);const description=document.createElement("div");description.className="desc";const spanDesc=document.createElement("span");spanDesc.insertAdjacentHTML("beforeend",item.desc);description.appendChild(spanDesc);wrapper.appendChild(description);link.appendChild(wrapper);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,length]}function makeTabHeader(tabNb,text,nbElems){if(searchState.currentTab===tabNb){return""}return""}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"&&(!search.firstChild||search.firstChild.innerText!==searchState.loadingText))){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=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=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="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in 
"}let output=`

Results${crates}

`;if(results.query.error!==null){output+=`

Query parser error: "${results.query.error}".

`;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}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("titles").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 search(e,forced){const params=searchState.getQueryStringParams();const query=parseQuery(searchState.input.value.trim());if(e){e.preventDefault()}if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}let filterCrates=getFilterCrates();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";if(browserSupportsHistoryApi()){const newURL=buildUrl(query.original,filterCrates);if(!history.state&&!params.search){history.pushState(null,"",newURL)}else{history.replaceState(null,"",newURL)}}showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;return types.map(type=>{let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}return{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:generics,}})}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){const pathIndex=functionSearchType[INPUTS_DATA];inputs=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){const pathIndex=functionSearchType[OUTPUT_DATA];output=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}return{inputs,output,}}function buildIndex(rawSearchIndex){searchIndex=[];const searchWords=[];let i,word;let currentIndex=0;let id=0;for(const crate in rawSearchIndex){if(!hasOwnPropertyRustdoc(rawSearchIndex,crate)){continue}let crateSize=0;const crateCorpus=rawSearchIndex[crate];searchWords.push(crate);const crateRow={crate:crate,ty:1,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=crateCorpus.q;const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;for(i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){ALIASES[crate]=Object.create(null);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}if(!hasOwnPropertyRustdoc(ALIASES[crate],alias_name)){ALIASES[crate][alias_name]=[]}for(const local_alias of aliases[alias_name]){ALIASES[crate][alias_name].push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}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){if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}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;search(e)}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 params=searchState.getQueryStringParams();const query=searchState.input.value.trim();if(!history.state&&!params.search){history.pushState(null,"",buildUrl(query,null))}else{history.replaceState(null,"",buildUrl(query,null))}}currentResults=null;search(undefined,true)}const searchWords=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}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file diff --git a/settings.html b/settings.html index 3e179cb..2b53a0d 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file +Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/source-script.js b/source-script.js index e0fac07..3866dfd 100644 --- a/source-script.js +++ b/source-script.js @@ -1 +1 @@ -"use strict";(function(){const rootPath=document.getElementById("rustdoc-vars").attributes["data-root-path"].value;let oldScrollPosition=0;const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;function closeSidebarIfMobile(){if(window.innerWidth"){if(window.innerWidth";updateLocalStorage("source-sidebar-show","false")}}function createSidebarToggle(){const sidebarToggle=document.createElement("div");sidebarToggle.id="sidebar-toggle";const inner=document.createElement("button");if(getCurrentValue("source-sidebar-show")==="true"){inner.innerText="<"}else{inner.innerText=">"}inner.onclick=toggleSidebar;sidebarToggle.appendChild(inner);return sidebarToggle}function createSourceSidebar(){const container=document.querySelector("nav.sidebar");const sidebarToggle=createSidebarToggle();container.insertBefore(sidebarToggle,container.firstChild);const sidebar=document.createElement("div");sidebar.id="source-sidebar";let hasFoundFile=false;const title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(sourcesIndex).forEach(key=>{sourcesIndex[key][NAME_OFFSET]=key;hasFoundFile=createDirEntry(sourcesIndex[key],sidebar,"",hasFoundFile)});container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}const lineNumbersRegex=/^#?(\d+)(?:-(\d+))?$/;function highlightSourceLines(match){if(typeof match==="undefined"){match=window.location.hash.match(lineNumbersRegex)}if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("span"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSourceHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSourceLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",()=>{const match=window.location.hash.match(lineNumbersRegex);if(match){return highlightSourceLines(match)}});onEachLazy(document.getElementsByClassName("line-numbers"),el=>{el.addEventListener("click",handleSourceHighlight)});highlightSourceLines();window.createSourceSidebar=createSourceSidebar})() \ No newline at end of file +"use strict";(function(){const rootPath=document.getElementById("rustdoc-vars").attributes["data-root-path"].value;let oldScrollPosition=null;const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;function closeSidebarIfMobile(){if(window.innerWidth"){if(window.innerWidth";updateLocalStorage("source-sidebar-show","false")}}window.addEventListener("resize",()=>{if(window.innerWidth>=window.RUSTDOC_MOBILE_BREAKPOINT&&oldScrollPosition!==null){document.body.style.position="";document.body.style.top="";window.scrollTo(0,oldScrollPosition);oldScrollPosition=null}});function createSidebarToggle(){const sidebarToggle=document.createElement("div");sidebarToggle.id="sidebar-toggle";const inner=document.createElement("button");if(getCurrentValue("source-sidebar-show")==="true"){inner.innerText="<"}else{inner.innerText=">"}inner.onclick=toggleSidebar;sidebarToggle.appendChild(inner);return sidebarToggle}function createSourceSidebar(){const container=document.querySelector("nav.sidebar");const sidebarToggle=createSidebarToggle();container.insertBefore(sidebarToggle,container.firstChild);const sidebar=document.createElement("div");sidebar.id="source-sidebar";let hasFoundFile=false;const title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(sourcesIndex).forEach(key=>{sourcesIndex[key][NAME_OFFSET]=key;hasFoundFile=createDirEntry(sourcesIndex[key],sidebar,"",hasFoundFile)});container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}const lineNumbersRegex=/^#?(\d+)(?:-(\d+))?$/;function highlightSourceLines(match){if(typeof match==="undefined"){match=window.location.hash.match(lineNumbersRegex)}if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("span"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSourceHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSourceLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",()=>{const match=window.location.hash.match(lineNumbersRegex);if(match){return highlightSourceLines(match)}});onEachLazy(document.getElementsByClassName("line-numbers"),el=>{el.addEventListener("click",handleSourceHighlight)});highlightSourceLines();window.createSourceSidebar=createSourceSidebar})() \ No newline at end of file diff --git a/src/libmedium/data.rs.html b/src/libmedium/data.rs.html index 26f3f2d..f217a66 100644 --- a/src/libmedium/data.rs.html +++ b/src/libmedium/data.rs.html @@ -1,4 +1,4 @@ -data.rs - source
1
+data.rs - source
1
 2
 3
 4
@@ -314,291 +314,291 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::path::Path;
+ */
+use std::path::Path;
 
-use actix_web::web;
-use graphql_client::{reqwest::post_graphql, GraphQLQuery};
-use reqwest::header::USER_AGENT;
-use reqwest::Client;
-use serde::{Deserialize, Serialize};
-use sled::{Db, Tree};
+use actix_web::web;
+use graphql_client::{reqwest::post_graphql, GraphQLQuery};
+use reqwest::header::USER_AGENT;
+use reqwest::Client;
+use serde::{Deserialize, Serialize};
+use sled::{Db, Tree};
 
-use crate::proxy::StringUtils;
-use crate::render_html;
-use crate::SETTINGS;
+use crate::proxy::StringUtils;
+use crate::render_html;
+use crate::SETTINGS;
 
-const POST_CACHE_VERSION: usize = 3;
-const GIST_CACHE_VERSION: usize = 1;
+const POST_CACHE_VERSION: usize = 3;
+const GIST_CACHE_VERSION: usize = 1;
 
-#[derive(Clone)]
-pub struct Data {
-    pub client: Client,
-    cache: Db,
-    pub posts: Tree,
-    pub gists: Tree,
+#[derive(Clone)]
+pub struct Data {
+    pub client: Client,
+    cache: Db,
+    pub posts: Tree,
+    pub gists: Tree,
 }
 
-#[derive(GraphQLQuery)]
-#[graphql(
-    schema_path = "schemas/schema.graphql",
-    query_path = "schemas/query.graphql",
-    response_derives = "Debug, Serialize, Deserialize, Clone"
-)]
-pub struct GetPost;
+#[derive(GraphQLQuery)]
+#[graphql(
+    schema_path = "schemas/schema.graphql",
+    query_path = "schemas/query.graphql",
+    response_derives = "Debug, Serialize, Deserialize, Clone"
+)]
+pub struct GetPost;
 
-pub type PostResp = get_post::GetPostPost;
+pub type PostResp = get_post::GetPostPost;
 
-pub type AppData = web::Data<Data>;
+pub type AppData = web::Data<Data>;
 
-impl PostResp {
-    pub fn get_subtitle(&self) -> &str {
-        self.preview_content.as_ref().unwrap().subtitle.as_str()
+impl PostResp {
+    pub fn get_subtitle(&self) -> &str {
+        self.preview_content.as_ref().unwrap().subtitle.as_str()
     }
 }
 
-#[derive(Deserialize, Serialize)]
-pub struct GistContent {
-    pub files: Vec<GistFile>,
-    pub html_url: String,
+#[derive(Deserialize, Serialize)]
+pub struct GistContent {
+    pub files: Vec<GistFile>,
+    pub html_url: String,
 }
 
-#[derive(Deserialize, Clone, Serialize)]
-pub struct GistFile {
-    pub file_name: String,
-    pub content: String,
-    pub language: String,
-    pub raw_url: String,
+#[derive(Deserialize, Clone, Serialize)]
+pub struct GistFile {
+    pub file_name: String,
+    pub content: String,
+    pub language: String,
+    pub raw_url: String,
 }
 
-impl GistFile {
-    pub fn get_html_content(&self) -> String {
-        let mut content = self.content.as_str();
-        if self.content.starts_with('"') {
-            content = self.content.slice(1..);
+impl GistFile {
+    pub fn get_html_content(&self) -> String {
+        let mut content = self.content.as_str();
+        if self.content.starts_with('"') {
+            content = self.content.slice(1..);
         }
 
-        if content.ends_with('"') {
-            content = content.slice(..content.len() - 1);
+        if content.ends_with('"') {
+            content = content.slice(..content.len() - 1);
         }
-        content.replace("\\t", "  ")
+        content.replace("\\t", "  ")
     }
 }
 
-#[derive(GraphQLQuery)]
-#[graphql(
-    schema_path = "schemas/schema.graphql",
-    query_path = "schemas/query.graphql",
-    response_derives = "Debug, Serialize, Deserialize, Clone"
-)]
-pub struct GetPostLight;
+#[derive(GraphQLQuery)]
+#[graphql(
+    schema_path = "schemas/schema.graphql",
+    query_path = "schemas/query.graphql",
+    response_derives = "Debug, Serialize, Deserialize, Clone"
+)]
+pub struct GetPostLight;
 
-#[derive(Debug, Clone)]
-pub struct PostUrl {
-    pub slug: String,
-    pub username: String,
+#[derive(Debug, Clone)]
+pub struct PostUrl {
+    pub slug: String,
+    pub username: String,
 }
 
-impl Data {
-    pub fn new() -> AppData {
-        let path = Path::new(SETTINGS.cache.as_ref().unwrap()).join("posts_cache");
-        let cache = sled::open(path).unwrap();
-        let posts = cache.open_tree("posts").unwrap();
-        let gists = cache.open_tree("gists").unwrap();
-        let res = Self {
-            client: Client::new(),
-            cache,
-            posts,
-            gists,
+impl Data {
+    pub fn new() -> AppData {
+        let path = Path::new(SETTINGS.cache.as_ref().unwrap()).join("posts_cache");
+        let cache = sled::open(path).unwrap();
+        let posts = cache.open_tree("posts").unwrap();
+        let gists = cache.open_tree("gists").unwrap();
+        let res = Self {
+            client: Client::new(),
+            cache,
+            posts,
+            gists,
         };
-        res.migrate();
+        res.migrate();
 
-        AppData::new(res)
+        AppData::new(res)
     }
 
-    fn migrate(&self) {
-        const POST_KEY: &str = "POST_CACHE_VERSION";
-        const GIST_KEY: &str = "GIST_CACHE_VERSION";
-        let trees = [
-            (&self.posts, POST_KEY, POST_CACHE_VERSION),
-            (&self.gists, GIST_KEY, GIST_CACHE_VERSION),
+    fn migrate(&self) {
+        const POST_KEY: &str = "POST_CACHE_VERSION";
+        const GIST_KEY: &str = "GIST_CACHE_VERSION";
+        let trees = [
+            (&self.posts, POST_KEY, POST_CACHE_VERSION),
+            (&self.gists, GIST_KEY, GIST_CACHE_VERSION),
         ];
 
-        for (tree, key, current_version) in trees {
-            if let Ok(Some(v)) = tree.get(key) {
-                let version = bincode::deserialize::<usize>(&v[..]).unwrap();
-                let clean = version != current_version;
+        for (tree, key, current_version) in trees {
+            if let Ok(Some(v)) = tree.get(key) {
+                let version = bincode::deserialize::<usize>(&v[..]).unwrap();
+                let clean = version != current_version;
 
-                if clean {
+                if clean {
                     log::info!(
                         "Upgrading {} from version {} to version {}",
-                        key,
-                        version,
-                        current_version
+                        key,
+                        version,
+                        current_version
                     );
-                    tree.clear().unwrap();
-                    tree.flush().unwrap();
-                    tree.insert(key, bincode::serialize(&current_version).unwrap())
-                        .unwrap();
+                    tree.clear().unwrap();
+                    tree.flush().unwrap();
+                    tree.insert(key, bincode::serialize(&current_version).unwrap())
+                        .unwrap();
                 }
             }
         }
     }
 
-    pub async fn get_post(&self, id: &str) -> PostResp {
-        match self.posts.get(id) {
-            Ok(Some(v)) => bincode::deserialize(&v[..]).unwrap(),
-            _ => {
-                let vars = get_post::Variables { id: id.to_owned() };
-                const URL: &str = "https://medium.com/_/graphql";
+    pub async fn get_post(&self, id: &str) -> PostResp {
+        match self.posts.get(id) {
+            Ok(Some(v)) => bincode::deserialize(&v[..]).unwrap(),
+            _ => {
+                let vars = get_post::Variables { id: id.to_owned() };
+                const URL: &str = "https://medium.com/_/graphql";
 
-                let res = post_graphql::<GetPost, _>(&self.client, URL, vars)
-                    .await
-                    .unwrap();
-                let res = res.data.expect("missing response data").post.unwrap();
-                self.posts
-                    .insert(id, bincode::serialize(&res).unwrap())
-                    .unwrap();
-                res
+                let res = post_graphql::<GetPost, _>(&self.client, URL, vars)
+                    .await
+                    .unwrap();
+                let res = res.data.expect("missing response data").post.unwrap();
+                self.posts
+                    .insert(id, bincode::serialize(&res).unwrap())
+                    .unwrap();
+                res
             }
         }
     }
 
-    pub async fn get_post_light(&self, id: &str) -> PostUrl {
-        match self.posts.get(id) {
-            Ok(Some(v)) => {
-                let cached: PostResp = bincode::deserialize(&v[..]).unwrap();
-                PostUrl {
-                    slug: cached.unique_slug,
-                    username: cached.creator.username,
+    pub async fn get_post_light(&self, id: &str) -> PostUrl {
+        match self.posts.get(id) {
+            Ok(Some(v)) => {
+                let cached: PostResp = bincode::deserialize(&v[..]).unwrap();
+                PostUrl {
+                    slug: cached.unique_slug,
+                    username: cached.creator.username,
                 }
             }
-            _ => {
-                let vars = get_post_light::Variables { id: id.to_owned() };
-                const URL: &str = "https://medium.com/_/graphql";
+            _ => {
+                let vars = get_post_light::Variables { id: id.to_owned() };
+                const URL: &str = "https://medium.com/_/graphql";
 
-                let res = post_graphql::<GetPostLight, _>(&self.client, URL, vars)
-                    .await
-                    .unwrap();
-                let res = res.data.expect("missing response data").post.unwrap();
-                PostUrl {
-                    slug: res.unique_slug,
-                    username: res.creator.username,
+                let res = post_graphql::<GetPostLight, _>(&self.client, URL, vars)
+                    .await
+                    .unwrap();
+                let res = res.data.expect("missing response data").post.unwrap();
+                PostUrl {
+                    slug: res.unique_slug,
+                    username: res.creator.username,
                 }
             }
         }
     }
 
-    pub fn get_gist_id(url: &str) -> &str {
-        url.split('/').last().unwrap()
+    pub fn get_gist_id(url: &str) -> &str {
+        url.split('/').last().unwrap()
     }
 
-    pub async fn get_gist(&self, gist_url: String) -> (String, GistContent) {
-        let id = Self::get_gist_id(&gist_url).to_owned();
-        let file_name = if gist_url.contains('?') {
-            let parsed = url::Url::parse(&gist_url).unwrap();
-            if let Some((_, file_name)) = parsed.query_pairs().find(|(k, _)| k == "file") {
-                Some(file_name.into_owned())
-            } else {
-                None
-            }
-        } else {
-            None
-        };
+    pub async fn get_gist(&self, gist_url: String) -> (String, GistContent) {
+        let id = Self::get_gist_id(&gist_url).to_owned();
+        let file_name = if gist_url.contains('?') {
+            let parsed = url::Url::parse(&gist_url).unwrap();
+            if let Some((_, file_name)) = parsed.query_pairs().find(|(k, _)| k == "file") {
+                Some(file_name.into_owned())
+            } else {
+                None
+            }
+        } else {
+            None
+        };
 
-        let mut gist = match self.gists.get(&id) {
-            Ok(Some(v)) => bincode::deserialize(&v[..]).unwrap(),
-            _ => {
-                const URL: &str = "https://api.github.com/gists/";
+        let mut gist = match self.gists.get(&id) {
+            Ok(Some(v)) => bincode::deserialize(&v[..]).unwrap(),
+            _ => {
+                const URL: &str = "https://api.github.com/gists/";
 
-                let url = format!("{}{}", URL, id);
+                let url = format!("{}{}", URL, id);
 
-                let resp = self
-                    .client
-                    .get(&url)
-                    .header(USER_AGENT, "libmedium")
-                    .send()
-                    .await
-                    .unwrap()
-                    .json::<serde_json::Value>()
-                    .await
-                    .unwrap();
-                let files = resp.get("files").unwrap();
-                let v = files.as_object().unwrap();
+                let resp = self
+                    .client
+                    .get(&url)
+                    .header(USER_AGENT, "libmedium")
+                    .send()
+                    .await
+                    .unwrap()
+                    .json::<serde_json::Value>()
+                    .await
+                    .unwrap();
+                let files = resp.get("files").unwrap();
+                let v = files.as_object().unwrap();
 
-                fn to_gist_file(name: &str, file_obj: &serde_json::Value) -> GistFile {
-                    GistFile {
-                        file_name: name.to_string(),
-                        content: file_obj
-                            .get("content")
-                            .unwrap()
-                            .as_str()
-                            .unwrap()
-                            .to_owned(),
-                        language: file_obj
-                            .get("language")
-                            .unwrap()
-                            .as_str()
-                            .unwrap()
-                            .to_owned(),
-                        raw_url: file_obj
-                            .get("raw_url")
-                            .unwrap()
-                            .as_str()
-                            .unwrap()
-                            .to_owned(),
+                fn to_gist_file(name: &str, file_obj: &serde_json::Value) -> GistFile {
+                    GistFile {
+                        file_name: name.to_string(),
+                        content: file_obj
+                            .get("content")
+                            .unwrap()
+                            .as_str()
+                            .unwrap()
+                            .to_owned(),
+                        language: file_obj
+                            .get("language")
+                            .unwrap()
+                            .as_str()
+                            .unwrap()
+                            .to_owned(),
+                        raw_url: file_obj
+                            .get("raw_url")
+                            .unwrap()
+                            .as_str()
+                            .unwrap()
+                            .to_owned(),
                     }
                 }
 
-                let mut files = Vec::with_capacity(v.len());
-                v.iter().for_each(|(name, file_obj)| {
-                    let file = to_gist_file(name, file_obj);
-                    files.push(file);
+                let mut files = Vec::with_capacity(v.len());
+                v.iter().for_each(|(name, file_obj)| {
+                    let file = to_gist_file(name, file_obj);
+                    files.push(file);
                 });
 
-                let gist = GistContent {
-                    files,
-                    html_url: resp.get("html_url").unwrap().as_str().unwrap().to_owned(),
+                let gist = GistContent {
+                    files,
+                    html_url: resp.get("html_url").unwrap().as_str().unwrap().to_owned(),
                 };
 
-                self.gists
-                    .insert(&id, bincode::serialize(&gist).unwrap())
-                    .unwrap();
-                gist
+                self.gists
+                    .insert(&id, bincode::serialize(&gist).unwrap())
+                    .unwrap();
+                gist
             }
         };
 
-        let gist = if let Some(file_name) = file_name {
-            let mut files: Vec<GistFile> = Vec::with_capacity(1);
-            let mut file = gist
-                .files
-                .iter()
-                .find(|f| f.file_name == file_name)
-                .unwrap()
-                .to_owned();
-            let highlight = render_html::SourcegraphQuery {
-                filepath: &file.file_name,
-                code: &file.content,
+        let gist = if let Some(file_name) = file_name {
+            let mut files: Vec<GistFile> = Vec::with_capacity(1);
+            let mut file = gist
+                .files
+                .iter()
+                .find(|f| f.file_name == file_name)
+                .unwrap()
+                .to_owned();
+            let highlight = render_html::SourcegraphQuery {
+                filepath: &file.file_name,
+                code: &file.content,
             };
-            file.content = highlight.syntax_highlight();
-            files.push(file);
-            GistContent {
-                files,
-                html_url: gist_url,
+            file.content = highlight.syntax_highlight();
+            files.push(file);
+            GistContent {
+                files,
+                html_url: gist_url,
             }
-        } else {
-            gist.files.iter_mut().for_each(|f| {
-                let highlight = render_html::SourcegraphQuery {
-                    filepath: &f.file_name,
-                    code: &f.content,
+        } else {
+            gist.files.iter_mut().for_each(|f| {
+                let highlight = render_html::SourcegraphQuery {
+                    filepath: &f.file_name,
+                    code: &f.content,
                 };
-                f.content = highlight.syntax_highlight();
+                f.content = highlight.syntax_highlight();
             });
-            gist
+            gist
         };
 
-        (id, gist)
+        (id, gist)
     }
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/main.rs.html b/src/libmedium/main.rs.html index 40d56ba..9811161 100644 --- a/src/libmedium/main.rs.html +++ b/src/libmedium/main.rs.html @@ -1,4 +1,4 @@ -main.rs - source
1
+main.rs - source
1
 2
 3
 4
@@ -108,85 +108,85 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::env;
+ */
+use std::env;
 
-use actix_web::{
-    error::InternalError, http::StatusCode, middleware as actix_middleware, web::JsonConfig, App,
-    HttpServer,
+use actix_web::{
+    error::InternalError, http::StatusCode, middleware as actix_middleware, web::JsonConfig, App,
+    HttpServer,
 };
-use lazy_static::lazy_static;
-use log::info;
+use lazy_static::lazy_static;
+use log::info;
 
-mod data;
-mod meta;
-mod post;
-mod proxy;
-mod render_html;
-mod routes;
-mod settings;
+mod data;
+mod meta;
+mod post;
+mod proxy;
+mod render_html;
+mod routes;
+mod settings;
 
-pub use data::AppData;
-pub use data::Data;
-pub use routes::ROUTES as V1_API_ROUTES;
-pub use settings::Settings;
+pub use data::AppData;
+pub use data::Data;
+pub use routes::ROUTES as V1_API_ROUTES;
+pub use settings::Settings;
 
-lazy_static! {
-    pub static ref SETTINGS: Settings = Settings::new().unwrap();
+lazy_static! {
+    pub static ref SETTINGS: Settings = Settings::new().unwrap();
 }
 
-pub const CACHE_AGE: u32 = 604800;
+pub const CACHE_AGE: u32 = 604800;
 
-pub const GIT_COMMIT_HASH: &str = env!("GIT_HASH");
-pub const VERSION: &str = env!("CARGO_PKG_VERSION");
-pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
-pub const PKG_DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION");
-pub const PKG_HOMEPAGE: &str = env!("CARGO_PKG_HOMEPAGE");
+pub const GIT_COMMIT_HASH: &str = env!("GIT_HASH");
+pub const VERSION: &str = env!("CARGO_PKG_VERSION");
+pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
+pub const PKG_DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION");
+pub const PKG_HOMEPAGE: &str = env!("CARGO_PKG_HOMEPAGE");
 
-#[cfg(not(tarpaulin_include))]
-#[actix_web::main]
-async fn main() -> std::io::Result<()> {
-    env::set_var("RUST_LOG", "info");
+#[cfg(not(tarpaulin_include))]
+#[actix_web::main]
+async fn main() -> std::io::Result<()> {
+    env::set_var("RUST_LOG", "info");
 
-    pretty_env_logger::init();
+    pretty_env_logger::init();
 
     info!(
         "{}: {}.\nFor more information, see: {}\nBuild info:\nVersion: {} commit: {}",
-        PKG_NAME, PKG_DESCRIPTION, PKG_HOMEPAGE, VERSION, GIT_COMMIT_HASH
+        PKG_NAME, PKG_DESCRIPTION, PKG_HOMEPAGE, VERSION, GIT_COMMIT_HASH
     );
 
-    println!("Starting server on: http://{}", SETTINGS.server.get_ip());
+    println!("Starting server on: http://{}", SETTINGS.server.get_ip());
 
-    let data = Data::new();
+    let data = Data::new();
 
-    HttpServer::new(move || {
-        App::new()
-            .wrap(actix_middleware::Logger::default())
-            .wrap(actix_middleware::Compress::default())
-            .app_data(get_json_err())
-            .wrap(
-                actix_middleware::DefaultHeaders::new()
-                    .add(("Permissions-Policy", "interest-cohort=()")),
+    HttpServer::new(move || {
+        App::new()
+            .wrap(actix_middleware::Logger::default())
+            .wrap(actix_middleware::Compress::default())
+            .app_data(get_json_err())
+            .wrap(
+                actix_middleware::DefaultHeaders::new()
+                    .add(("Permissions-Policy", "interest-cohort=()")),
             )
-            .wrap(actix_middleware::NormalizePath::new(
-                actix_middleware::TrailingSlash::Trim,
+            .wrap(actix_middleware::NormalizePath::new(
+                actix_middleware::TrailingSlash::Trim,
             ))
-            .app_data(data.clone())
-            .configure(routes::services)
+            .app_data(data.clone())
+            .configure(routes::services)
     })
-    .workers(SETTINGS.server.workers.unwrap_or_else(num_cpus::get))
-    .bind(SETTINGS.server.get_ip())
-    .unwrap()
-    .run()
-    .await
-}
+    .workers(SETTINGS.server.workers.unwrap_or_else(num_cpus::get))
+    .bind(SETTINGS.server.get_ip())
+    .unwrap()
+    .run()
+    .await
+}
 
-#[cfg(not(tarpaulin_include))]
-pub fn get_json_err() -> JsonConfig {
-    JsonConfig::default().error_handler(|err, _| {
-        //debug!("JSON deserialization error: {:?}", &err);
-        InternalError::new(err, StatusCode::BAD_REQUEST).into()
+#[cfg(not(tarpaulin_include))]
+pub fn get_json_err() -> JsonConfig {
+    JsonConfig::default().error_handler(|err, _| {
+        //debug!("JSON deserialization error: {:?}", &err);
+        InternalError::new(err, StatusCode::BAD_REQUEST).into()
     })
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/meta.rs.html b/src/libmedium/meta.rs.html index 03ea77e..d10aec3 100644 --- a/src/libmedium/meta.rs.html +++ b/src/libmedium/meta.rs.html @@ -1,4 +1,4 @@ -meta.rs - source
1
+meta.rs - source
1
 2
 3
 4
@@ -91,68 +91,68 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use actix_web::{web, HttpResponse, Responder};
-use serde::{Deserialize, Serialize};
+ */
+use actix_web::{web, HttpResponse, Responder};
+use serde::{Deserialize, Serialize};
 
-use crate::{GIT_COMMIT_HASH, VERSION};
+use crate::{GIT_COMMIT_HASH, VERSION};
 
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct BuildDetails {
-    pub version: &'static str,
-    pub git_commit_hash: &'static str,
+#[derive(Clone, Debug, Deserialize, Serialize)]
+pub struct BuildDetails {
+    pub version: &'static str,
+    pub git_commit_hash: &'static str,
 }
 
-pub mod routes {
-    pub struct Meta {
-        pub build_details: &'static str,
-        pub health: &'static str,
+pub mod routes {
+    pub struct Meta {
+        pub build_details: &'static str,
+        pub health: &'static str,
     }
 
-    impl Meta {
-        pub const fn new() -> Self {
-            Self {
-                build_details: "/api/v1/meta/build",
-                health: "/api/v1/meta/health",
+    impl Meta {
+        pub const fn new() -> Self {
+            Self {
+                build_details: "/api/v1/meta/build",
+                health: "/api/v1/meta/health",
             }
         }
     }
 }
 
-/// emmits build details of the bninary
-#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.meta.build_details")]
-async fn build_details() -> impl Responder {
-    let build = BuildDetails {
-        version: VERSION,
-        git_commit_hash: GIT_COMMIT_HASH,
+/// emmits build details of the bninary
+#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.meta.build_details")]
+async fn build_details() -> impl Responder {
+    let build = BuildDetails {
+        version: VERSION,
+        git_commit_hash: GIT_COMMIT_HASH,
     };
-    HttpResponse::Ok().json(build)
+    HttpResponse::Ok().json(build)
 }
 
-pub fn services(cfg: &mut web::ServiceConfig) {
-    cfg.service(build_details);
+pub fn services(cfg: &mut web::ServiceConfig) {
+    cfg.service(build_details);
 }
 
-#[cfg(test)]
-mod tests {
-    use actix_web::{http::StatusCode, test, App};
+#[cfg(test)]
+mod tests {
+    use actix_web::{http::StatusCode, test, App};
 
-    use crate::routes::services;
-    use crate::*;
+    use crate::routes::services;
+    use crate::*;
 
-    #[actix_rt::test]
-    async fn build_details_works() {
-        let app = test::init_service(App::new().configure(services)).await;
+    #[actix_rt::test]
+    async fn build_details_works() {
+        let app = test::init_service(App::new().configure(services)).await;
 
-        let resp = test::call_service(
-            &app,
-            test::TestRequest::get()
-                .uri(V1_API_ROUTES.meta.build_details)
-                .to_request(),
+        let resp = test::call_service(
+            &app,
+            test::TestRequest::get()
+                .uri(V1_API_ROUTES.meta.build_details)
+                .to_request(),
         )
         .await;
-        assert_eq!(resp.status(), StatusCode::OK);
+        assert_eq!(resp.status(), StatusCode::OK);
     }
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/post.rs.html b/src/libmedium/post.rs.html index e00c0b4..16cc84d 100644 --- a/src/libmedium/post.rs.html +++ b/src/libmedium/post.rs.html @@ -1,4 +1,4 @@ -post.rs - source
1
+post.rs - source
1
 2
 3
 4
@@ -383,105 +383,105 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::{collections::HashMap, hash::Hash};
+ */
+use std::{collections::HashMap, hash::Hash};
 
-use crate::data::*;
-use crate::proxy::StringUtils;
-use get_post::*;
+use crate::data::*;
+use crate::proxy::StringUtils;
+use get_post::*;
 
-#[derive(Eq, PartialEq)]
-enum PostitionType {
-    Start,
-    End,
+#[derive(Eq, PartialEq)]
+enum PostitionType {
+    Start,
+    End,
 }
 
-struct Markup<'a, 'b> {
-    markup: &'a GetPostPostContentBodyModelParagraphsMarkups,
-    p: &'a GetPostPostContentBodyModelParagraphs,
-    pos_type: PostitionType,
-    gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
+struct Markup<'a, 'b> {
+    markup: &'a GetPostPostContentBodyModelParagraphsMarkups,
+    p: &'a GetPostPostContentBodyModelParagraphs,
+    pos_type: PostitionType,
+    gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
 }
 
-impl<'a, 'b> Markup<'a, 'b> {
-    fn start(
-        p: &GetPostPostContentBodyModelParagraphs,
-        gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
-        pindex: usize,
-        in_oli: &mut bool,
-    ) -> String {
-        if p.type_ == "IMG" {
-            let metadata = p.metadata.as_ref().unwrap();
+impl<'a, 'b> Markup<'a, 'b> {
+    fn start(
+        p: &GetPostPostContentBodyModelParagraphs,
+        gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
+        pindex: usize,
+        in_oli: &mut bool,
+    ) -> String {
+        if p.type_ == "IMG" {
+            let metadata = p.metadata.as_ref().unwrap();
             format!(
                 r#"<figure><img width="{}" src="{}" /> <figcaption>"#,
-                metadata.original_width.as_ref().unwrap(),
-                crate::V1_API_ROUTES.proxy.get_medium_asset(&metadata.id)
+                metadata.original_width.as_ref().unwrap(),
+                crate::V1_API_ROUTES.proxy.get_medium_asset(&metadata.id)
             )
-        } else if p.type_ == "P" {
-            "<p>".into()
-        } else if p.type_ == "PRE" {
-            "<pre>".into()
-        } else if p.type_ == "BQ" {
-            "<blockquote>".into()
-        } else if p.type_ == "H1" {
-            "<h1>".into()
-        } else if p.type_ == "H2" {
-            "<h2>".into()
-        } else if p.type_ == "H3" {
-            if pindex == 0 {
+        } else if p.type_ == "P" {
+            "<p>".into()
+        } else if p.type_ == "PRE" {
+            "<pre>".into()
+        } else if p.type_ == "BQ" {
+            "<blockquote>".into()
+        } else if p.type_ == "H1" {
+            "<h1>".into()
+        } else if p.type_ == "H2" {
+            "<h2>".into()
+        } else if p.type_ == "H3" {
+            if pindex == 0 {
                 log::debug!("caught heading");
-                "".into()
-            } else {
-                "<h3>".into()
+                "".into()
+            } else {
+                "<h3>".into()
             }
-        } else if p.type_ == "H4" {
-            "<h4>".into()
-        } else if p.type_ == "H5" {
-            "<h5>".into()
-        } else if p.type_ == "H6" {
-            "<h6>".into()
-        } else if p.type_ == "IFRAME" {
-            let src = &p
-                .iframe
-                .as_ref()
-                .unwrap()
-                .media_resource
-                .as_ref()
-                .unwrap()
-                .href;
-            if src.contains("gist.github.com") {
-                let gist_id = crate::data::Data::get_gist_id(src);
-                let (_, gist) = gists
-                    .as_ref()
-                    .unwrap()
-                    .iter()
-                    .find(|(id, _)| id == gist_id)
-                    .as_ref()
-                    .unwrap();
+        } else if p.type_ == "H4" {
+            "<h4>".into()
+        } else if p.type_ == "H5" {
+            "<h5>".into()
+        } else if p.type_ == "H6" {
+            "<h6>".into()
+        } else if p.type_ == "IFRAME" {
+            let src = &p
+                .iframe
+                .as_ref()
+                .unwrap()
+                .media_resource
+                .as_ref()
+                .unwrap()
+                .href;
+            if src.contains("gist.github.com") {
+                let gist_id = crate::data::Data::get_gist_id(src);
+                let (_, gist) = gists
+                    .as_ref()
+                    .unwrap()
+                    .iter()
+                    .find(|(id, _)| id == gist_id)
+                    .as_ref()
+                    .unwrap();
 
-                let mut gists = String::default();
-                for file in &gist.files {
-                    gists += &format!(
+                let mut gists = String::default();
+                for file in &gist.files {
+                    gists += &format!(
                         r#"<div class="code-block gist-block">{}</div>"#,
-                        file.get_html_content()
+                        file.get_html_content()
                     );
                 }
                 format!(
                     r#"<div class="gist_container">{gists}
                      <a class="gist_link" href="{}" target="_blank">See gist on GitHub</a>"#,
-                    &gist.html_url
+                    &gist.html_url
                 )
-            } else {
+            } else {
                 format!(r#"<iframe src="{src}" frameborder="0">"#)
             }
-        } else if p.type_ == "OLI" {
-            if *in_oli {
-                "<li>".into()
-            } else {
-                *in_oli = true;
-                "<ul><li>".into()
+        } else if p.type_ == "OLI" {
+            if *in_oli {
+                "<li>".into()
+            } else {
+                *in_oli = true;
+                "<ul><li>".into()
             }
-        } else {
+        } else {
             log::info!("Unknown type");
             r#"
                 <p class="libmedium__meta">
@@ -495,132 +495,132 @@
                     <br />
                     Alternatively, you can also email me at realaravinth at batsense dot net!
                   </p>
-            <span>"#
-                .into()
+            <span>"#
+                .into()
         }
     }
 
-    fn end(p: &GetPostPostContentBodyModelParagraphs, pindex: usize, in_oli: &mut bool) -> String {
-        let resp: String = if p.type_ == "IMG" {
-            "</figcaption></figure>".into()
-        } else if p.type_ == "P" {
-            "</p>".into()
-        } else if p.type_ == "PRE" {
-            "</pre>".into()
-        } else if p.type_ == "BQ" {
-            "</blockquote>".into()
-        } else if p.type_ == "H1" {
-            "</h1>".into()
-        } else if p.type_ == "H2" {
-            "</h2>".into()
-        } else if p.type_ == "H3" {
-            if pindex == 0 {
+    fn end(p: &GetPostPostContentBodyModelParagraphs, pindex: usize, in_oli: &mut bool) -> String {
+        let resp: String = if p.type_ == "IMG" {
+            "</figcaption></figure>".into()
+        } else if p.type_ == "P" {
+            "</p>".into()
+        } else if p.type_ == "PRE" {
+            "</pre>".into()
+        } else if p.type_ == "BQ" {
+            "</blockquote>".into()
+        } else if p.type_ == "H1" {
+            "</h1>".into()
+        } else if p.type_ == "H2" {
+            "</h2>".into()
+        } else if p.type_ == "H3" {
+            if pindex == 0 {
                 log::debug!("caught heading");
-                "".into()
-            } else {
-                "</h3>".into()
+                "".into()
+            } else {
+                "</h3>".into()
             }
-        } else if p.type_ == "H4" {
-            "</h4>".into()
-        } else if p.type_ == "H5" {
-            "</h5>".into()
-        } else if p.type_ == "H6" {
-            "</h6>".into()
-        } else if p.type_ == "IFRAME" {
-            let src = &p
-                .iframe
-                .as_ref()
-                .unwrap()
-                .media_resource
-                .as_ref()
-                .unwrap()
-                .href;
-            if src.contains("gist.github.com") {
-                "</div>".into()
-            } else {
-                "</iframe>".into()
+        } else if p.type_ == "H4" {
+            "</h4>".into()
+        } else if p.type_ == "H5" {
+            "</h5>".into()
+        } else if p.type_ == "H6" {
+            "</h6>".into()
+        } else if p.type_ == "IFRAME" {
+            let src = &p
+                .iframe
+                .as_ref()
+                .unwrap()
+                .media_resource
+                .as_ref()
+                .unwrap()
+                .href;
+            if src.contains("gist.github.com") {
+                "</div>".into()
+            } else {
+                "</iframe>".into()
             }
-        } else if p.type_ == "OLI" {
-            "</li>".into()
-        } else {
-            "</span>".into()
+        } else if p.type_ == "OLI" {
+            "</li>".into()
+        } else {
+            "</span>".into()
         };
-        if *in_oli {
-            if p.type_ != "OLL" {
-                *in_oli = false;
+        if *in_oli {
+            if p.type_ != "OLL" {
+                *in_oli = false;
                 format!("</ul>{resp}")
-            } else {
-                resp
+            } else {
+                resp
             }
-        } else {
-            resp
+        } else {
+            resp
         }
     }
 
-    fn apply_markup(&self, pindex: usize) -> String {
-        if self.markup.type_ == "A" {
-            if let Some(anchor_type) = &self.markup.anchor_type {
-                if anchor_type == "LINK" {
-                    if self.pos_type == PostitionType::Start {
+    fn apply_markup(&self, pindex: usize) -> String {
+        if self.markup.type_ == "A" {
+            if let Some(anchor_type) = &self.markup.anchor_type {
+                if anchor_type == "LINK" {
+                    if self.pos_type == PostitionType::Start {
                         format!(
                             r#"<a rel="noreferrer" href="{}">"#,
-                            self.markup.href.as_ref().unwrap()
+                            self.markup.href.as_ref().unwrap()
                         )
-                    } else {
-                        "</a>".into()
+                    } else {
+                        "</a>".into()
                     }
-                } else if anchor_type == "USER" {
-                    if self.pos_type == PostitionType::Start {
+                } else if anchor_type == "USER" {
+                    if self.pos_type == PostitionType::Start {
                         format!(
                             r#"<a rel="noreferrer" href="https://medium.com/u/{}">"#,
-                            self.markup.user_id.as_ref().unwrap()
+                            self.markup.user_id.as_ref().unwrap()
                         )
-                    } else {
-                        "</a>".into()
+                    } else {
+                        "</a>".into()
                     }
-                } else {
-                    //             log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);
-                    if self.pos_type == PostitionType::Start {
-                        "<span>".into()
-                    } else {
-                        "</span>".into()
+                } else {
+                    //             log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);
+                    if self.pos_type == PostitionType::Start {
+                        "<span>".into()
+                    } else {
+                        "</span>".into()
                     }
                 }
-            } else {
-                //             log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);
-                if self.pos_type == PostitionType::Start {
-                    "<span>".into()
-                } else {
-                    "</span>".into()
+            } else {
+                //             log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);
+                if self.pos_type == PostitionType::Start {
+                    "<span>".into()
+                } else {
+                    "</span>".into()
                 }
             }
-        } else if self.markup.type_ == "PRE" {
-            if self.pos_type == PostitionType::Start {
-                "<pre>".into()
-            } else {
-                "</pre>".into()
+        } else if self.markup.type_ == "PRE" {
+            if self.pos_type == PostitionType::Start {
+                "<pre>".into()
+            } else {
+                "</pre>".into()
             }
-        } else if self.markup.type_ == "EM" {
-            if self.pos_type == PostitionType::Start {
-                "<em>".into()
-            } else {
-                "</em>".into()
+        } else if self.markup.type_ == "EM" {
+            if self.pos_type == PostitionType::Start {
+                "<em>".into()
+            } else {
+                "</em>".into()
             }
-        } else if self.markup.type_ == "STRONG" {
-            if self.pos_type == PostitionType::Start {
-                "<strong>".into()
-            } else {
-                "</strong>".into()
+        } else if self.markup.type_ == "STRONG" {
+            if self.pos_type == PostitionType::Start {
+                "<strong>".into()
+            } else {
+                "</strong>".into()
             }
-        } else if self.markup.type_ == "CODE" {
-            if self.pos_type == PostitionType::Start {
-                "<code>".into()
-            } else {
-                "</code>".into()
+        } else if self.markup.type_ == "CODE" {
+            if self.pos_type == PostitionType::Start {
+                "<code>".into()
+            } else {
+                "</code>".into()
             }
-        } else {
-            // log::error!("unknown markup.type_: {:?} post id {}", markup.type_, id);
-            if self.pos_type == PostitionType::Start {
+        } else {
+            // log::error!("unknown markup.type_: {:?} post id {}", markup.type_, id);
+            if self.pos_type == PostitionType::Start {
                 log::info!("Unknown type");
                 r#"
                 <p class="libmedium__meta">
@@ -634,109 +634,109 @@
                     <br />
                     Alternatively, you can also email me at realaravinth at batsense dot net!
                   </p>
-            <span>"#
-                    .into()
-            } else {
-                "</span>".into()
+            <span>"#
+                    .into()
+            } else {
+                "</span>".into()
             }
         }
     }
 }
 
-#[derive(Default)]
-struct PositionMap<'a, 'b> {
-    map: HashMap<i64, Vec<Markup<'a, 'b>>>,
-    arr: Vec<i64>,
+#[derive(Default)]
+struct PositionMap<'a, 'b> {
+    map: HashMap<i64, Vec<Markup<'a, 'b>>>,
+    arr: Vec<i64>,
 }
 
-impl<'a, 'b> PositionMap<'a, 'b> {
-    fn insert_if_not_exists(&mut self, pos: i64, m: Markup<'a, 'b>) {
-        if let Some(markups) = self.map.get_mut(&pos) {
-            markups.push(m);
-        } else {
-            self.map.insert(pos, vec![m]);
-            self.arr.push(pos);
+impl<'a, 'b> PositionMap<'a, 'b> {
+    fn insert_if_not_exists(&mut self, pos: i64, m: Markup<'a, 'b>) {
+        if let Some(markups) = self.map.get_mut(&pos) {
+            markups.push(m);
+        } else {
+            self.map.insert(pos, vec![m]);
+            self.arr.push(pos);
         }
     }
 }
 
-pub fn apply_markup<'b>(
-    data: &PostResp,
-    gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
-) -> Vec<String> {
-    let mut paragraphs: Vec<String> = Vec::with_capacity(data.content.body_model.paragraphs.len());
-    for (pindex, p) in data.content.body_model.paragraphs.iter().enumerate() {
-        let mut pos = PositionMap::default();
-        if p.type_ == "H3" && pindex == 0 {
+pub fn apply_markup<'b>(
+    data: &PostResp,
+    gists: &'b Option<Vec<(String, crate::data::GistContent)>>,
+) -> Vec<String> {
+    let mut paragraphs: Vec<String> = Vec::with_capacity(data.content.body_model.paragraphs.len());
+    for (pindex, p) in data.content.body_model.paragraphs.iter().enumerate() {
+        let mut pos = PositionMap::default();
+        if p.type_ == "H3" && pindex == 0 {
             log::debug!("FOUND TOP LEVEL H3. Breaking");
             continue;
         }
-        for m in p.markups.iter() {
-            let start_markup = Markup {
-                markup: &m,
-                p,
-                gists,
-                pos_type: PostitionType::Start,
+        for m in p.markups.iter() {
+            let start_markup = Markup {
+                markup: &m,
+                p,
+                gists,
+                pos_type: PostitionType::Start,
             };
-            pos.insert_if_not_exists(m.start, start_markup);
-            let end_markup = Markup {
-                markup: &m,
-                p,
-                gists,
-                pos_type: PostitionType::End,
+            pos.insert_if_not_exists(m.start, start_markup);
+            let end_markup = Markup {
+                markup: &m,
+                p,
+                gists,
+                pos_type: PostitionType::End,
             };
 
-            pos.insert_if_not_exists(m.end, end_markup);
+            pos.insert_if_not_exists(m.end, end_markup);
         }
 
-        let mut cur = 0;
+        let mut cur = 0;
 
-        fn incr_cur(cur: usize, point: i64) -> usize {
-            let incr = point as usize - cur;
-            let post_incr = cur + incr;
+        fn incr_cur(cur: usize, point: i64) -> usize {
+            let incr = point as usize - cur;
+            let post_incr = cur + incr;
             log::debug!(
                 "cur before incr: {cur}, incr by: {}, post incr: {}",
-                incr,
-                post_incr
+                incr,
+                post_incr
             );
-            post_incr
+            post_incr
         }
 
-        let mut content = String::with_capacity(p.text.len());
-        let mut in_oli = false;
-        content += &Markup::start(&p, &gists, pindex, &mut in_oli);
-        pos.arr.sort();
-        if let Some(first) = pos.arr.get(0) {
-            //content += p.text.substring(cur, *first as usize);
-            content += p.text.slice(cur..*first as usize);
-            cur = incr_cur(cur, *first);
-            for point in pos.arr.iter() {
-                //content.push(p.text.substring(start, start + point);
-                //            if *point != 0 {
+        let mut content = String::with_capacity(p.text.len());
+        let mut in_oli = false;
+        content += &Markup::start(&p, &gists, pindex, &mut in_oli);
+        pos.arr.sort();
+        if let Some(first) = pos.arr.get(0) {
+            //content += p.text.substring(cur, *first as usize);
+            content += p.text.slice(cur..*first as usize);
+            cur = incr_cur(cur, *first);
+            for point in pos.arr.iter() {
+                //content.push(p.text.substring(start, start + point);
+                //            if *point != 0 {
 
-                if cur != *point as usize {
-                    //           content += p.text.substring(cur, *point as usize);
-                    content += p.text.slice(cur..*point as usize);
+                if cur != *point as usize {
+                    //           content += p.text.substring(cur, *point as usize);
+                    content += p.text.slice(cur..*point as usize);
                 }
-                //           }
-                let pos_markups = pos.map.get(point).unwrap();
-                for m in pos_markups.iter() {
-                    //                println!("{}", &m.apply_markup(pindex));
-                    content += &m.apply_markup(pindex);
+                //           }
+                let pos_markups = pos.map.get(point).unwrap();
+                for m in pos_markups.iter() {
+                    //                println!("{}", &m.apply_markup(pindex));
+                    content += &m.apply_markup(pindex);
                 }
-                cur = incr_cur(cur, *point);
+                cur = incr_cur(cur, *point);
             }
             log::debug!("LAST");
-            content += p.text.slice(cur..);
-            content += &Markup::end(&p, pindex, &mut in_oli);
-        } else {
+            content += p.text.slice(cur..);
+            content += &Markup::end(&p, pindex, &mut in_oli);
+        } else {
             log::debug!("LAST WITH NO MARKUP");
-            content += p.text.slice(cur..);
-            content += &Markup::end(&p, pindex, &mut in_oli);
+            content += p.text.slice(cur..);
+            content += &Markup::end(&p, pindex, &mut in_oli);
         }
-        paragraphs.push(content);
+        paragraphs.push(content);
     }
-    paragraphs
+    paragraphs
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/proxy.rs.html b/src/libmedium/proxy.rs.html index 8000b41..8ff8aa8 100644 --- a/src/libmedium/proxy.rs.html +++ b/src/libmedium/proxy.rs.html @@ -1,4 +1,4 @@ -proxy.rs - source
1
+proxy.rs - source
1
 2
 3
 4
@@ -299,276 +299,276 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::ops::{Bound, RangeBounds};
+ */
+use std::ops::{Bound, RangeBounds};
 
-use actix_web::{http::header, web, HttpResponse, Responder};
-use chrono::{TimeZone, Utc};
-use futures::future::join_all;
-use reqwest::header::CONTENT_TYPE;
-use sailfish::TemplateOnce;
+use actix_web::{http::header, web, HttpResponse, Responder};
+use chrono::{TimeZone, Utc};
+use futures::future::join_all;
+use reqwest::header::CONTENT_TYPE;
+use sailfish::TemplateOnce;
 
-use crate::data::PostResp;
-use crate::post::apply_markup;
-use crate::AppData;
+use crate::data::PostResp;
+use crate::post::apply_markup;
+use crate::AppData;
 
-const CACHE_AGE: u32 = 60 * 60 * 24;
+const CACHE_AGE: u32 = 60 * 60 * 24;
 
-pub mod routes {
-    pub struct Proxy {
-        pub index: &'static str,
-        pub by_post_id: &'static str,
-        pub page: &'static str,
-        pub asset: &'static str,
+pub mod routes {
+    pub struct Proxy {
+        pub index: &'static str,
+        pub by_post_id: &'static str,
+        pub page: &'static str,
+        pub asset: &'static str,
     }
 
-    impl Proxy {
-        pub const fn new() -> Self {
-            Self {
-                index: "/",
-                by_post_id: "/utils/post/{post}",
-                page: "/{username}/{post}",
-                asset: "/asset/medium/{name}",
+    impl Proxy {
+        pub const fn new() -> Self {
+            Self {
+                index: "/",
+                by_post_id: "/utils/post/{post}",
+                page: "/{username}/{post}",
+                asset: "/asset/medium/{name}",
             }
         }
-        pub fn get_page(&self, username: &str, post: &str) -> String {
-            self.page
-                .replace("{username}", username)
-                .replace("{post}", post)
+        pub fn get_page(&self, username: &str, post: &str) -> String {
+            self.page
+                .replace("{username}", username)
+                .replace("{post}", post)
         }
 
-        pub fn get_medium_asset(&self, asset_name: &str) -> String {
-            self.asset.replace("{name}", asset_name)
+        pub fn get_medium_asset(&self, asset_name: &str) -> String {
+            self.asset.replace("{name}", asset_name)
         }
     }
 }
 
-// credits @carlomilanesi:
-// https://users.rust-lang.org/t/how-to-get-a-substring-of-a-string/1351/11
-pub trait StringUtils {
-    fn substring(&self, start: usize, len: usize) -> &str;
-    fn slice(&self, range: impl RangeBounds<usize>) -> &str;
+// credits @carlomilanesi:
+// https://users.rust-lang.org/t/how-to-get-a-substring-of-a-string/1351/11
+pub trait StringUtils {
+    fn substring(&self, start: usize, len: usize) -> &str;
+    fn slice(&self, range: impl RangeBounds<usize>) -> &str;
 }
 
-impl StringUtils for str {
-    fn substring(&self, start: usize, len: usize) -> &str {
-        let mut char_pos = 0;
-        let mut byte_start = 0;
-        let mut it = self.chars();
-        loop {
-            if char_pos == start {
+impl StringUtils for str {
+    fn substring(&self, start: usize, len: usize) -> &str {
+        let mut char_pos = 0;
+        let mut byte_start = 0;
+        let mut it = self.chars();
+        loop {
+            if char_pos == start {
                 break;
             }
-            if let Some(c) = it.next() {
-                char_pos += 1;
-                byte_start += c.len_utf8();
-            } else {
+            if let Some(c) = it.next() {
+                char_pos += 1;
+                byte_start += c.len_utf8();
+            } else {
                 break;
             }
         }
-        char_pos = 0;
-        let mut byte_end = byte_start;
-        loop {
-            if char_pos == len {
+        char_pos = 0;
+        let mut byte_end = byte_start;
+        loop {
+            if char_pos == len {
                 break;
             }
-            if let Some(c) = it.next() {
-                char_pos += 1;
-                byte_end += c.len_utf8();
-            } else {
+            if let Some(c) = it.next() {
+                char_pos += 1;
+                byte_end += c.len_utf8();
+            } else {
                 break;
             }
         }
-        &self[byte_start..byte_end]
+        &self[byte_start..byte_end]
     }
-    fn slice(&self, range: impl RangeBounds<usize>) -> &str {
-        let start = match range.start_bound() {
-            Bound::Included(bound) | Bound::Excluded(bound) => *bound,
-            Bound::Unbounded => 0,
+    fn slice(&self, range: impl RangeBounds<usize>) -> &str {
+        let start = match range.start_bound() {
+            Bound::Included(bound) | Bound::Excluded(bound) => *bound,
+            Bound::Unbounded => 0,
         };
         log::debug!("{}", self);
         log::debug!("start: {start}");
-        let len = match range.end_bound() {
-            Bound::Included(bound) => *bound + 1,
-            Bound::Excluded(bound) => *bound,
-            Bound::Unbounded => self.len(),
-        } - start;
+        let len = match range.end_bound() {
+            Bound::Included(bound) => *bound + 1,
+            Bound::Excluded(bound) => *bound,
+            Bound::Unbounded => self.len(),
+        } - start;
         log::debug!("len {len}");
-        self.substring(start, len)
+        self.substring(start, len)
     }
 }
 
-#[derive(TemplateOnce)]
-#[template(path = "post.html")]
-#[template(rm_whitespace = true)]
-pub struct Post {
-    pub data: PostResp,
-    pub date: String,
-    pub preview_img: String,
-    pub reading_time: usize,
-    pub id: String,
-    pub gists: Option<Vec<(String, crate::data::GistContent)>>,
-    pub paragraphs: Vec<String>,
+#[derive(TemplateOnce)]
+#[template(path = "post.html")]
+#[template(rm_whitespace = true)]
+pub struct Post {
+    pub data: PostResp,
+    pub date: String,
+    pub preview_img: String,
+    pub reading_time: usize,
+    pub id: String,
+    pub gists: Option<Vec<(String, crate::data::GistContent)>>,
+    pub paragraphs: Vec<String>,
 }
 
-const INDEX: &str = include_str!("../templates/index.html");
+const INDEX: &str = include_str!("../templates/index.html");
 
-#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.index")]
-async fn index() -> impl Responder {
-    HttpResponse::Ok()
-        .content_type("text/html; charset=utf-8")
-        .body(INDEX)
+#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.index")]
+async fn index() -> impl Responder {
+    HttpResponse::Ok()
+        .content_type("text/html; charset=utf-8")
+        .body(INDEX)
 }
 
-#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.asset")]
-async fn assets(path: web::Path<String>, data: AppData) -> impl Responder {
-    let res = data
-        .client
-        .get(format!("https://miro.medium.com/{}", path))
-        .send()
-        .await
-        .unwrap();
-    let headers = res.headers();
-    let content_type = headers.get(CONTENT_TYPE).unwrap();
-    HttpResponse::Ok()
-        .insert_header(header::CacheControl(vec![
-            header::CacheDirective::Public,
-            header::CacheDirective::Extension("immutable".into(), None),
-            header::CacheDirective::MaxAge(CACHE_AGE),
+#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.asset")]
+async fn assets(path: web::Path<String>, data: AppData) -> impl Responder {
+    let res = data
+        .client
+        .get(format!("https://miro.medium.com/{}", path))
+        .send()
+        .await
+        .unwrap();
+    let headers = res.headers();
+    let content_type = headers.get(CONTENT_TYPE).unwrap();
+    HttpResponse::Ok()
+        .insert_header(header::CacheControl(vec![
+            header::CacheDirective::Public,
+            header::CacheDirective::Extension("immutable".into(), None),
+            header::CacheDirective::MaxAge(CACHE_AGE),
         ]))
-        .content_type(content_type)
-        .body(res.bytes().await.unwrap())
+        .content_type(content_type)
+        .body(res.bytes().await.unwrap())
 }
 
-#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.by_post_id")]
-async fn by_post_id(path: web::Path<String>, data: AppData) -> impl Responder {
-    let post_data = data.get_post_light(&path).await;
-    HttpResponse::Found()
-        .append_header((
-            header::LOCATION,
-            crate::V1_API_ROUTES
-                .proxy
-                .get_page(&post_data.username, &post_data.slug),
+#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.by_post_id")]
+async fn by_post_id(path: web::Path<String>, data: AppData) -> impl Responder {
+    let post_data = data.get_post_light(&path).await;
+    HttpResponse::Found()
+        .append_header((
+            header::LOCATION,
+            crate::V1_API_ROUTES
+                .proxy
+                .get_page(&post_data.username, &post_data.slug),
         ))
-        .finish()
+        .finish()
 }
 
-#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.page")]
-async fn page(path: web::Path<(String, String)>, data: AppData) -> impl Responder {
-    let post_id = path.1.split('-').last();
-    if post_id.is_none() {
-        return HttpResponse::BadRequest().finish();
+#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.page")]
+async fn page(path: web::Path<(String, String)>, data: AppData) -> impl Responder {
+    let post_id = path.1.split('-').last();
+    if post_id.is_none() {
+        return HttpResponse::BadRequest().finish();
     }
-    let id = post_id.unwrap();
+    let id = post_id.unwrap();
 
-    let post_data = data.get_post(id).await;
-    let mut futs = Vec::new();
-    let paragraphs = &post_data.content.body_model.paragraphs;
+    let post_data = data.get_post(id).await;
+    let mut futs = Vec::new();
+    let paragraphs = &post_data.content.body_model.paragraphs;
 
-    for p in paragraphs.iter() {
-        if p.type_ == "IFRAME" {
-            let src = &p
-                .iframe
-                .as_ref()
-                .unwrap()
-                .media_resource
-                .as_ref()
-                .unwrap()
-                .href;
-            if src.contains("gist.github.com") {
-                let fut = data.get_gist(src.to_owned());
-                futs.push(fut);
+    for p in paragraphs.iter() {
+        if p.type_ == "IFRAME" {
+            let src = &p
+                .iframe
+                .as_ref()
+                .unwrap()
+                .media_resource
+                .as_ref()
+                .unwrap()
+                .href;
+            if src.contains("gist.github.com") {
+                let fut = data.get_gist(src.to_owned());
+                futs.push(fut);
             }
         }
     }
-    let gists = if futs.is_empty() {
-        None
-    } else {
-        let x = join_all(futs).await;
-        Some(x)
+    let gists = if futs.is_empty() {
+        None
+    } else {
+        let x = join_all(futs).await;
+        Some(x)
     };
 
-    let date = Utc
-        .timestamp_millis(post_data.created_at)
-        .format("%b %e, %Y")
-        .to_string();
-    let reading_time = post_data.reading_time.floor() as usize;
-    let preview_img = post_data
-        .preview_image
-        .as_ref()
-        .unwrap()
-        .id
-        .as_ref()
-        .unwrap();
-    let preview_img = crate::V1_API_ROUTES.proxy.get_medium_asset(preview_img);
+    let date = Utc
+        .timestamp_millis(post_data.created_at)
+        .format("%b %e, %Y")
+        .to_string();
+    let reading_time = post_data.reading_time.floor() as usize;
+    let preview_img = post_data
+        .preview_image
+        .as_ref()
+        .unwrap()
+        .id
+        .as_ref()
+        .unwrap();
+    let preview_img = crate::V1_API_ROUTES.proxy.get_medium_asset(preview_img);
 
-    let paragraphs = apply_markup(&post_data, &gists);
+    let paragraphs = apply_markup(&post_data, &gists);
 
-    let page = Post {
-        id: id.to_owned(),
-        data: post_data,
-        date,
-        gists,
-        reading_time,
-        preview_img,
-        paragraphs,
+    let page = Post {
+        id: id.to_owned(),
+        data: post_data,
+        date,
+        gists,
+        reading_time,
+        preview_img,
+        paragraphs,
     };
 
-    let page = page.render_once().unwrap();
-    HttpResponse::Ok()
-        .content_type("text/html; charset=utf-8")
-        .body(page)
+    let page = page.render_once().unwrap();
+    HttpResponse::Ok()
+        .content_type("text/html; charset=utf-8")
+        .body(page)
 }
 
-pub fn services(cfg: &mut web::ServiceConfig) {
-    cfg.service(by_post_id);
-    cfg.service(assets);
-    cfg.service(page);
-    cfg.service(index);
+pub fn services(cfg: &mut web::ServiceConfig) {
+    cfg.service(by_post_id);
+    cfg.service(assets);
+    cfg.service(page);
+    cfg.service(index);
 }
 
-#[cfg(test)]
-mod tests {
-    use actix_web::{http::StatusCode, test, App};
+#[cfg(test)]
+mod tests {
+    use actix_web::{http::StatusCode, test, App};
 
-    use super::*;
-    use crate::{routes::services, Data};
+    use super::*;
+    use crate::{routes::services, Data};
 
-    #[actix_rt::test]
-    async fn deploy_update_works() {
-        let data = Data::new();
-        let app = test::init_service(App::new().app_data(data.clone()).configure(services)).await;
-        let urls = vec![
+    #[actix_rt::test]
+    async fn deploy_update_works() {
+        let data = Data::new();
+        let app = test::init_service(App::new().app_data(data.clone()).configure(services)).await;
+        let urls = vec![
             "/@ftrain/big-data-small-effort-b62607a43a8c",
             "/@shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8",
             "/",
             "/asset/medium/1*LY2ohYsNa9nOV1Clko3zJA.png",
         ];
 
-        for uri in urls.iter() {
-            let resp =
-                test::call_service(&app, test::TestRequest::get().uri(uri).to_request()).await;
-            assert_eq!(resp.status(), StatusCode::OK);
+        for uri in urls.iter() {
+            let resp =
+                test::call_service(&app, test::TestRequest::get().uri(uri).to_request()).await;
+            assert_eq!(resp.status(), StatusCode::OK);
         }
 
-        let urls = vec![
+        let urls = vec![
             "/ftrain/big-data-small-effort-b62607a43a8c",
             "/shawn-shi/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8",
         ];
 
-        for uri in urls.iter() {
-            let id = uri.split('-').last().unwrap();
+        for uri in urls.iter() {
+            let id = uri.split('-').last().unwrap();
 
-            let page_url = crate::V1_API_ROUTES.proxy.by_post_id.replace("{post}", id);
+            let page_url = crate::V1_API_ROUTES.proxy.by_post_id.replace("{post}", id);
 
-            let resp =
-                test::call_service(&app, test::TestRequest::get().uri(&page_url).to_request())
+            let resp =
+                test::call_service(&app, test::TestRequest::get().uri(&page_url).to_request())
                     .await;
-            assert_eq!(resp.status(), StatusCode::FOUND);
-            let headers = resp.headers();
-            assert_eq!(headers.get(header::LOCATION).unwrap(), uri);
+            assert_eq!(resp.status(), StatusCode::FOUND);
+            let headers = resp.headers();
+            assert_eq!(headers.get(header::LOCATION).unwrap(), uri);
         }
     }
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/render_html.rs.html b/src/libmedium/render_html.rs.html index 3b867b8..ba67a40 100644 --- a/src/libmedium/render_html.rs.html +++ b/src/libmedium/render_html.rs.html @@ -1,4 +1,4 @@ -render_html.rs - source
1
+render_html.rs - source
1
 2
 3
 4
@@ -181,158 +181,158 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::path::Path;
+ */
+use std::path::Path;
 
-use syntect::highlighting::{Color, ThemeSet};
-use syntect::html::highlighted_html_for_string;
-use syntect::parsing::{SyntaxReference, SyntaxSet};
+use syntect::highlighting::{Color, ThemeSet};
+use syntect::html::highlighted_html_for_string;
+use syntect::parsing::{SyntaxReference, SyntaxSet};
 
-pub trait GenerateHTML {
-    fn generate(&mut self);
+pub trait GenerateHTML {
+    fn generate(&mut self);
 }
 
-#[allow(dead_code)]
-pub const STYLE: &str = "
+#[allow(dead_code)]
+pub const STYLE: &str = "
     ";
 
-thread_local! {
-    pub(crate) static SYNTAX_SET: SyntaxSet = SyntaxSet::load_defaults_newlines();
+thread_local! {
+    pub(crate) static SYNTAX_SET: SyntaxSet = SyntaxSet::load_defaults_newlines();
 }
 
-pub struct SourcegraphQuery<'a> {
-    pub filepath: &'a str,
-    pub code: &'a str,
+pub struct SourcegraphQuery<'a> {
+    pub filepath: &'a str,
+    pub code: &'a str,
 }
 
-impl<'a> SourcegraphQuery<'a> {
-    pub fn syntax_highlight(&self) -> String {
-        //    let ss = SYNTAX_SET;
-        let ts = ThemeSet::load_defaults();
+impl<'a> SourcegraphQuery<'a> {
+    pub fn syntax_highlight(&self) -> String {
+        //    let ss = SYNTAX_SET;
+        let ts = ThemeSet::load_defaults();
 
-        let theme = &ts.themes["InspiredGitHub"];
-        let c = theme.settings.background.unwrap_or(Color::WHITE);
-        let mut num = 1;
-        let mut output = format!(
+        let theme = &ts.themes["InspiredGitHub"];
+        let c = theme.settings.background.unwrap_or(Color::WHITE);
+        let mut num = 1;
+        let mut output = format!(
             "<style>
         .gist_file {{
             background-color:#{:02x}{:02x}{:02x};
         }}</style>",
-            c.r, c.g, c.b
+            c.r, c.g, c.b
         );
 
-        // highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
-        let html = SYNTAX_SET.with(|ss| {
-            let language = self.determine_language(ss);
-            highlighted_html_for_string(self.code, ss, language, theme)
+        // highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
+        let html = SYNTAX_SET.with(|ss| {
+            let language = self.determine_language(ss);
+            highlighted_html_for_string(self.code, ss, language, theme)
         });
-        let total_lines = html.lines().count();
-        for (line_num, line) in html.lines().enumerate() {
-            if !line.trim().is_empty() {
-                if line_num == 0 || line_num == total_lines - 1 {
-                    output.push_str(line);
-                } else {
-                    output.push_str(&format!("<div title='click for more options' id=\"line-{num}\"class=\"line\"><details class='line_links'><summary class='line_top-link'><a href=\"#line-{num}\"<span class=\"line-number\">{num}</span></a>{line}</summary><a href=\"#line-{num}\"<span class=\"line-link\">Permanant link</span></a><a href=\"#line-{num}\"<span class=\"line-link\">Highlight</span></a></details></div>"
-                    ));
-                    num += 1;
+        let total_lines = html.lines().count();
+        for (line_num, line) in html.lines().enumerate() {
+            if !line.trim().is_empty() {
+                if line_num == 0 || line_num == total_lines - 1 {
+                    output.push_str(line);
+                } else {
+                    output.push_str(&format!("<div title='click for more options' id=\"line-{num}\"class=\"line\"><details class='line_links'><summary class='line_top-link'><a href=\"#line-{num}\"<span class=\"line-number\">{num}</span></a>{line}</summary><a href=\"#line-{num}\"<span class=\"line-link\">Permanant link</span></a><a href=\"#line-{num}\"<span class=\"line-link\">Highlight</span></a></details></div>"
+                    ));
+                    num += 1;
                 }
             }
         }
-        output
+        output
     }
 
-    // adopted from
-    // https://github.com/sourcegraph/sourcegraph/blob/9fe138ae75fd64dce06b621572b252a9c9c8da70/docker-images/syntax-highlighter/crates/sg-syntax/src/lib.rs#L81
-    // with minimum modifications. Crate was MIT licensed at the time(2022-03-12 11:11)
-    fn determine_language<'b>(&self, syntax_set: &'b SyntaxSet) -> &'b SyntaxReference {
-        if self.filepath.is_empty() {
-            // Legacy codepath, kept for backwards-compatability with old clients.
-            match syntax_set.find_syntax_by_first_line(self.code) {
-                Some(v) => {
-                    return v;
+    // adopted from
+    // https://github.com/sourcegraph/sourcegraph/blob/9fe138ae75fd64dce06b621572b252a9c9c8da70/docker-images/syntax-highlighter/crates/sg-syntax/src/lib.rs#L81
+    // with minimum modifications. Crate was MIT licensed at the time(2022-03-12 11:11)
+    fn determine_language<'b>(&self, syntax_set: &'b SyntaxSet) -> &'b SyntaxReference {
+        if self.filepath.is_empty() {
+            // Legacy codepath, kept for backwards-compatability with old clients.
+            match syntax_set.find_syntax_by_first_line(self.code) {
+                Some(v) => {
+                    return v;
                 }
-                None => unimplemented!(), //Err(json!({"error": "invalid extension"})),
-            };
+                None => unimplemented!(), //Err(json!({"error": "invalid extension"})),
+            };
         }
 
-        // Split the input path ("foo/myfile.go") into file name
-        // ("myfile.go") and extension ("go").
-        let path = Path::new(&self.filepath);
-        let file_name = path.file_name().and_then(|n| n.to_str()).unwrap_or("");
-        let extension = path.extension().and_then(|x| x.to_str()).unwrap_or("");
+        // Split the input path ("foo/myfile.go") into file name
+        // ("myfile.go") and extension ("go").
+        let path = Path::new(&self.filepath);
+        let file_name = path.file_name().and_then(|n| n.to_str()).unwrap_or("");
+        let extension = path.extension().and_then(|x| x.to_str()).unwrap_or("");
 
-        // Override syntect's language detection for conflicting file extensions because
-        // it's impossible to express this logic in a syntax definition.
-        struct Override {
-            extension: &'static str,
-            prefix_langs: Vec<(&'static str, &'static str)>,
-            default: &'static str,
+        // Override syntect's language detection for conflicting file extensions because
+        // it's impossible to express this logic in a syntax definition.
+        struct Override {
+            extension: &'static str,
+            prefix_langs: Vec<(&'static str, &'static str)>,
+            default: &'static str,
         }
-        let overrides = vec![Override {
-            extension: "cls",
-            prefix_langs: vec![("%", "TeX"), ("\\", "TeX")],
-            default: "Apex",
+        let overrides = vec![Override {
+            extension: "cls",
+            prefix_langs: vec![("%", "TeX"), ("\\", "TeX")],
+            default: "Apex",
         }];
 
-        if let Some(Override {
-            prefix_langs,
-            default,
+        if let Some(Override {
+            prefix_langs,
+            default,
             ..
-        }) = overrides.iter().find(|o| o.extension == extension)
+        }) = overrides.iter().find(|o| o.extension == extension)
         {
-            let name = match prefix_langs
-                .iter()
-                .find(|(prefix, _)| self.code.starts_with(prefix))
+            let name = match prefix_langs
+                .iter()
+                .find(|(prefix, _)| self.code.starts_with(prefix))
             {
-                Some((_, lang)) => lang,
-                None => default,
+                Some((_, lang)) => lang,
+                None => default,
             };
-            return syntax_set
-                .find_syntax_by_name(name)
-                .unwrap_or_else(|| syntax_set.find_syntax_plain_text());
+            return syntax_set
+                .find_syntax_by_name(name)
+                .unwrap_or_else(|| syntax_set.find_syntax_plain_text());
         }
 
-        syntax_set
-            // First try to find a syntax whose "extension" matches our file
-            // name. This is done due to some syntaxes matching an "extension"
-            // that is actually a whole file name (e.g. "Dockerfile" or "CMakeLists.txt")
-            // see https://github.com/trishume/syntect/pull/170
-            .find_syntax_by_extension(file_name)
-            .or_else(|| syntax_set.find_syntax_by_extension(extension))
-            .or_else(|| syntax_set.find_syntax_by_first_line(self.code))
-            .unwrap_or_else(|| syntax_set.find_syntax_plain_text())
+        syntax_set
+            // First try to find a syntax whose "extension" matches our file
+            // name. This is done due to some syntaxes matching an "extension"
+            // that is actually a whole file name (e.g. "Dockerfile" or "CMakeLists.txt")
+            // see https://github.com/trishume/syntect/pull/170
+            .find_syntax_by_extension(file_name)
+            .or_else(|| syntax_set.find_syntax_by_extension(extension))
+            .or_else(|| syntax_set.find_syntax_by_first_line(self.code))
+            .unwrap_or_else(|| syntax_set.find_syntax_plain_text())
     }
 }
 
-#[cfg(test)]
-mod tests {
-    use super::SourcegraphQuery;
+#[cfg(test)]
+mod tests {
+    use super::SourcegraphQuery;
 
-    use syntect::parsing::SyntaxSet;
+    use syntect::parsing::SyntaxSet;
 
-    #[test]
-    fn cls_tex() {
-        let syntax_set = SyntaxSet::load_defaults_newlines();
-        let query = SourcegraphQuery {
-            filepath: "foo.cls",
-            code: "%",
+    #[test]
+    fn cls_tex() {
+        let syntax_set = SyntaxSet::load_defaults_newlines();
+        let query = SourcegraphQuery {
+            filepath: "foo.cls",
+            code: "%",
         };
-        let result = query.determine_language(&syntax_set);
-        assert_eq!(result.name, "TeX");
-        let _result = query.syntax_highlight();
+        let result = query.determine_language(&syntax_set);
+        assert_eq!(result.name, "TeX");
+        let _result = query.syntax_highlight();
     }
 
-    //#[test]
-    //fn cls_apex() {
-    //    let syntax_set = SyntaxSet::load_defaults_newlines();
-    //    let query = SourcegraphQuery {
-    //        filepath: "foo.cls".to_string(),
-    //        code: "/**".to_string(),
-    //        extension: String::new(),
-    //    };
-    //    let result = determine_language(&query, &syntax_set);
-    //    assert_eq!(result.unwrap().name, "Apex");
-    //}
-}
+    //#[test]
+    //fn cls_apex() {
+    //    let syntax_set = SyntaxSet::load_defaults_newlines();
+    //    let query = SourcegraphQuery {
+    //        filepath: "foo.cls".to_string(),
+    //        code: "/**".to_string(),
+    //        extension: String::new(),
+    //    };
+    //    let result = determine_language(&query, &syntax_set);
+    //    assert_eq!(result.unwrap().name, "Apex");
+    //}
+}
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/routes.rs.html b/src/libmedium/routes.rs.html index 72efba1..c92f070 100644 --- a/src/libmedium/routes.rs.html +++ b/src/libmedium/routes.rs.html @@ -1,4 +1,4 @@ -routes.rs - source
1
+routes.rs - source
1
 2
 3
 4
@@ -54,31 +54,31 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use actix_web::web;
+ */
+use actix_web::web;
 
-use crate::meta::routes::Meta;
-use crate::proxy::routes::Proxy;
+use crate::meta::routes::Meta;
+use crate::proxy::routes::Proxy;
 
-pub const ROUTES: Routes = Routes::new();
+pub const ROUTES: Routes = Routes::new();
 
-pub struct Routes {
-    pub meta: Meta,
-    pub proxy: Proxy,
+pub struct Routes {
+    pub meta: Meta,
+    pub proxy: Proxy,
 }
 
-impl Routes {
-    pub const fn new() -> Self {
-        Self {
-            meta: Meta::new(),
-            proxy: Proxy::new(),
+impl Routes {
+    pub const fn new() -> Self {
+        Self {
+            meta: Meta::new(),
+            proxy: Proxy::new(),
         }
     }
 }
 
-pub fn services(cfg: &mut web::ServiceConfig) {
-    crate::meta::services(cfg);
-    crate::proxy::services(cfg);
+pub fn services(cfg: &mut web::ServiceConfig) {
+    crate::meta::services(cfg);
+    crate::proxy::services(cfg);
 }
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/libmedium/settings.rs.html b/src/libmedium/settings.rs.html index b151e7a..cd3412e 100644 --- a/src/libmedium/settings.rs.html +++ b/src/libmedium/settings.rs.html @@ -1,4 +1,4 @@ -settings.rs - source
1
+settings.rs - source
1
 2
 3
 4
@@ -130,107 +130,107 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-use std::env;
-use std::fs;
-use std::path::Path;
+ */
+use std::env;
+use std::fs;
+use std::path::Path;
 
-use config::{Config, ConfigError, Environment, File};
-use log::warn;
-use serde::Deserialize;
-use url::Url;
+use config::{Config, ConfigError, Environment, File};
+use log::warn;
+use serde::Deserialize;
+use url::Url;
 
-#[derive(Debug, Clone, Deserialize)]
-pub struct Server {
-    pub port: u32,
-    pub domain: String,
-    pub ip: String,
-    pub proxy_has_tls: bool,
-    pub workers: Option<usize>,
+#[derive(Debug, Clone, Deserialize)]
+pub struct Server {
+    pub port: u32,
+    pub domain: String,
+    pub ip: String,
+    pub proxy_has_tls: bool,
+    pub workers: Option<usize>,
 }
 
-impl Server {
-    #[cfg(not(tarpaulin_include))]
-    pub fn get_ip(&self) -> String {
-        format!("{}:{}", self.ip, self.port)
+impl Server {
+    #[cfg(not(tarpaulin_include))]
+    pub fn get_ip(&self) -> String {
+        format!("{}:{}", self.ip, self.port)
     }
 }
 
-#[derive(Debug, Clone, Deserialize)]
-pub struct Settings {
-    pub debug: bool,
-    pub cache: Option<String>,
-    pub server: Server,
-    pub source_code: String,
+#[derive(Debug, Clone, Deserialize)]
+pub struct Settings {
+    pub debug: bool,
+    pub cache: Option<String>,
+    pub server: Server,
+    pub source_code: String,
 }
 
-#[cfg(not(tarpaulin_include))]
-impl Settings {
-    pub fn new() -> Result<Self, ConfigError> {
-        let mut s = Config::new();
+#[cfg(not(tarpaulin_include))]
+impl Settings {
+    pub fn new() -> Result<Self, ConfigError> {
+        let mut s = Config::new();
 
-        // setting default values
-        #[cfg(test)]
-        s.set_default("database.pool", 2.to_string())
-            .expect("Couldn't get the number of CPUs");
+        // setting default values
+        #[cfg(test)]
+        s.set_default("database.pool", 2.to_string())
+            .expect("Couldn't get the number of CPUs");
 
-        const CURRENT_DIR: &str = "./config/default.toml";
-        const ETC: &str = "/etc/libmedium/config.toml";
+        const CURRENT_DIR: &str = "./config/default.toml";
+        const ETC: &str = "/etc/libmedium/config.toml";
 
-        if let Ok(path) = env::var("LIBMEDIUM") {
-            s.merge(File::with_name(&path))?;
-        } else if Path::new(CURRENT_DIR).exists() {
-            // merging default config from file
-            s.merge(File::with_name(CURRENT_DIR))?;
-        } else if Path::new(ETC).exists() {
-            s.merge(File::with_name(ETC))?;
-        } else {
+        if let Ok(path) = env::var("LIBMEDIUM") {
+            s.merge(File::with_name(&path))?;
+        } else if Path::new(CURRENT_DIR).exists() {
+            // merging default config from file
+            s.merge(File::with_name(CURRENT_DIR))?;
+        } else if Path::new(ETC).exists() {
+            s.merge(File::with_name(ETC))?;
+        } else {
             log::warn!("configuration file not found");
         }
 
-        s.merge(Environment::with_prefix("PAGES").separator("__"))?;
+        s.merge(Environment::with_prefix("PAGES").separator("__"))?;
 
-        check_url(&s);
+        check_url(&s);
 
-        match env::var("PORT") {
-            Ok(val) => {
-                s.set("server.port", val).unwrap();
+        match env::var("PORT") {
+            Ok(val) => {
+                s.set("server.port", val).unwrap();
             }
-            Err(e) => warn!("couldn't interpret PORT: {}", e),
+            Err(e) => warn!("couldn't interpret PORT: {}", e),
         }
 
-        let mut settings: Settings = s.try_into()?;
+        let mut settings: Settings = s.try_into()?;
 
-        if settings.cache.is_none() {
-            let tmp = env::temp_dir().join("libmedium_cache_path");
-            if !tmp.exists() {
-                fs::create_dir_all(&tmp).unwrap()
+        if settings.cache.is_none() {
+            let tmp = env::temp_dir().join("libmedium_cache_path");
+            if !tmp.exists() {
+                fs::create_dir_all(&tmp).unwrap()
             }
-            settings.cache = Some(tmp.to_str().unwrap().to_string())
+            settings.cache = Some(tmp.to_str().unwrap().to_string())
         }
 
-        let cache_path = settings.cache.as_ref().unwrap();
-        let cache_path = Path::new(&cache_path);
-        if !cache_path.exists() {
-            fs::create_dir(&cache_path).unwrap();
+        let cache_path = settings.cache.as_ref().unwrap();
+        let cache_path = Path::new(&cache_path);
+        if !cache_path.exists() {
+            fs::create_dir(&cache_path).unwrap();
         }
-        if !cache_path.is_dir() {
+        if !cache_path.is_dir() {
             panic!(
                 "Cache path {} must be a directory",
-                &settings.cache.as_ref().unwrap()
+                &settings.cache.as_ref().unwrap()
             );
         }
-        Ok(settings)
+        Ok(settings)
     }
 }
 
-#[cfg(not(tarpaulin_include))]
-fn check_url(s: &Config) {
-    let url = s
-        .get::<String>("source_code")
-        .expect("Couldn't access source_code");
+#[cfg(not(tarpaulin_include))]
+fn check_url(s: &Config) {
+    let url = s
+        .get::<String>("source_code")
+        .expect("Couldn't access source_code");
 
-    Url::parse(&url).expect("Please enter a URL for source_code in settings");
+    Url::parse(&url).expect("Please enter a URL for source_code in settings");
 }
 
-
\ No newline at end of file +
\ No newline at end of file