Deploying to gh-libmedium from @ bd401d888e
🚀
This commit is contained in:
parent
9e023d2c6a
commit
cea5746102
46 changed files with 968 additions and 42 deletions
3
implementors/core/cmp/trait.Eq.js
Normal file
3
implementors/core/cmp/trait.Eq.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
(function() {var implementors = {};
|
||||
implementors["libmedium"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.63.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"libmedium/post/enum.PostitionType.html\" title=\"enum libmedium::post::PostitionType\">PostitionType</a>","synthetic":false,"types":["libmedium::post::PostitionType"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
3
implementors/core/cmp/trait.PartialEq.js
Normal file
3
implementors/core/cmp/trait.PartialEq.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
(function() {var implementors = {};
|
||||
implementors["libmedium"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.63.0/core/cmp/trait.PartialEq.html\" title=\"trait core::cmp::PartialEq\">PartialEq</a><<a class=\"enum\" href=\"libmedium/post/enum.PostitionType.html\" title=\"enum libmedium::post::PostitionType\">PostitionType</a>> for <a class=\"enum\" href=\"libmedium/post/enum.PostitionType.html\" title=\"enum libmedium::post::PostitionType\">PostitionType</a>","synthetic":false,"types":["libmedium::post::PostitionType"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
3
implementors/core/default/trait.Default.js
Normal file
3
implementors/core/default/trait.Default.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
(function() {var implementors = {};
|
||||
implementors["libmedium"] = [{"text":"impl<'a, 'b> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.63.0/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"libmedium/post/struct.PositionMap.html\" title=\"struct libmedium::post::PositionMap\">PositionMap</a><'a, 'b>","synthetic":false,"types":["libmedium::post::PositionMap"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
implementors/core/marker/trait.StructuralEq.js
Normal file
3
implementors/core/marker/trait.StructuralEq.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
(function() {var implementors = {};
|
||||
implementors["libmedium"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.63.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"libmedium/post/enum.PostitionType.html\" title=\"enum libmedium::post::PostitionType\">PostitionType</a>","synthetic":false,"types":["libmedium::post::PostitionType"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
3
implementors/core/marker/trait.StructuralPartialEq.js
Normal file
3
implementors/core/marker/trait.StructuralPartialEq.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
(function() {var implementors = {};
|
||||
implementors["libmedium"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.63.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"libmedium/post/enum.PostitionType.html\" title=\"enum libmedium::post::PostitionType\">PostitionType</a>","synthetic":false,"types":["libmedium::post::PostitionType"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">CACHE_AGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#42">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const CACHE_AGE: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u32.html">u32</a> = 604800;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">CACHE_AGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#43">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const CACHE_AGE: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u32.html">u32</a> = 604800;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">GIT_COMMIT_HASH</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#44">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const GIT_COMMIT_HASH: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "1c1224b405fdfbbd154389e65d026f18ac8a151e";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">GIT_COMMIT_HASH</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#45">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const GIT_COMMIT_HASH: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "bd401d888e59382138f1c3ddf71b1a5ee768ae73";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_DESCRIPTION</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#47">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_DESCRIPTION: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_DESCRIPTION</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#48">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_DESCRIPTION: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_HOMEPAGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#48">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_HOMEPAGE: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "https://github.com/realaravinth/libmedium";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_HOMEPAGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#49">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_HOMEPAGE: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "https://github.com/realaravinth/libmedium";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_NAME</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#46">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_NAME: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "libmedium";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">PKG_NAME</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#47">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const PKG_NAME: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "libmedium";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">VERSION</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#45">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const VERSION: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "0.1.0";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">VERSION</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#46">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const VERSION: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "0.1.0";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="index.html">libmedium</a>::<wbr><a class="fn" href="#">get_json_err</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#89-94">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn get_json_err() -> JsonConfig</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="index.html">libmedium</a>::<wbr><a class="fn" href="#">get_json_err</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#90-95">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn get_json_err() -> JsonConfig</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="index.html">libmedium</a>::<wbr><a class="fn" href="#">main</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#51">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub(crate) fn main() -> <a class="type" href="https://doc.rust-lang.org/1.63.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a>></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="index.html">libmedium</a>::<wbr><a class="fn" href="#">main</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#52">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub(crate) fn main() -> <a class="type" href="https://doc.rust-lang.org/1.63.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a>></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,8 +5,8 @@
|
|||
</a><h2 class="location"><a href="#">Crate libmedium</a></h2><div class="sidebar-elems"><div class="block"><ul><li class="version">Version 0.1.0</li><li><a id="all-types" href="all.html">All Items</a></li></ul></div><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">libmedium</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#17-94">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="data/index.html" title="libmedium::data mod">data</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="meta/index.html" title="libmedium::meta mod">meta</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="proxy/index.html" title="libmedium::proxy mod">proxy</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="render_html/index.html" title="libmedium::render_html mod">render_html</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="routes/index.html" title="libmedium::routes mod">routes</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="settings/index.html" title="libmedium::settings mod">settings</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">libmedium</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#17-95">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="data/index.html" title="libmedium::data mod">data</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="meta/index.html" title="libmedium::meta mod">meta</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="post/index.html" title="libmedium::post mod">post</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="proxy/index.html" title="libmedium::proxy mod">proxy</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="render_html/index.html" title="libmedium::render_html mod">render_html</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="routes/index.html" title="libmedium::routes mod">routes</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="settings/index.html" title="libmedium::settings mod">settings</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Data.html" title="libmedium::Data struct">Data</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.SETTINGS.html" title="libmedium::SETTINGS struct">SETTINGS</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Settings.html" title="libmedium::Settings struct">Settings</a></div><div class="item-right docblock-short"></div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.CACHE_AGE.html" title="libmedium::CACHE_AGE constant">CACHE_AGE</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.GIT_COMMIT_HASH.html" title="libmedium::GIT_COMMIT_HASH constant">GIT_COMMIT_HASH</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.PKG_DESCRIPTION.html" title="libmedium::PKG_DESCRIPTION constant">PKG_DESCRIPTION</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.PKG_HOMEPAGE.html" title="libmedium::PKG_HOMEPAGE constant">PKG_HOMEPAGE</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.PKG_NAME.html" title="libmedium::PKG_NAME constant">PKG_NAME</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.V1_API_ROUTES.html" title="libmedium::V1_API_ROUTES constant">V1_API_ROUTES</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.VERSION.html" title="libmedium::VERSION constant">VERSION</a></div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.get_json_err.html" title="libmedium::get_json_err fn">get_json_err</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.main.html" title="libmedium::main fn">main</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="types" class="small-section-header"><a href="#types">Type Definitions</a></h2>
|
||||
|
|
42
libmedium/post/enum.PostitionType.html
Normal file
42
libmedium/post/enum.PostitionType.html
Normal file
File diff suppressed because one or more lines are too long
9
libmedium/post/fn.apply_markup.html
Normal file
9
libmedium/post/fn.apply_markup.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `apply_markup` fn in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, apply_markup"><title>apply_markup in libmedium::post - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"></h2>
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium::post</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">libmedium</a>::<wbr><a href="index.html">post</a>::<wbr><a class="fn" href="#">apply_markup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/post.rs.html#293-370">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn apply_markup<'b>(<br> data: &<a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a>, <br> gists: &'b <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../data/struct.GistContent.html" title="struct libmedium::data::GistContent">GistContent</a>)>><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u8.html">u8</a>, A></span><code class="content"><span class="where fmt-newline">impl<A> <a class="trait" href="https://doc.rust-lang.org/1.63.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u8.html">u8</a>, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>, </span></span></code></span></span></span></span></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
12
libmedium/post/index.html
Normal file
12
libmedium/post/index.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `post` mod in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, post"><title>libmedium::post - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"></h2>
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Module post</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">libmedium</a>::<wbr><a class="mod" href="#">post</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/post.rs.html#17-370">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Markup.html" title="libmedium::post::Markup struct">Markup</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PositionMap.html" title="libmedium::post::PositionMap struct">PositionMap</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.PostitionType.html" title="libmedium::post::PostitionType enum">PostitionType</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.apply_markup.html" title="libmedium::post::apply_markup fn">apply_markup</a></div><div class="item-right docblock-short"></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
1
libmedium/post/sidebar-items.js
Normal file
1
libmedium/post/sidebar-items.js
Normal file
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":[["PostitionType",""]],"fn":[["apply_markup",""]],"struct":[["Markup",""],["PositionMap",""]]};
|
40
libmedium/post/struct.Markup.html
Normal file
40
libmedium/post/struct.Markup.html
Normal file
File diff suppressed because one or more lines are too long
39
libmedium/post/struct.PositionMap.html
Normal file
39
libmedium/post/struct.PositionMap.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `PositionMap` struct in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, PositionMap"><title>PositionMap in libmedium::post - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"></h2>
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">PositionMap</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.arr">arr</a></li><li><a href="#structfield.map">map</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.insert_if_not_exists">insert_if_not_exists</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Default">Default</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Pointable">Pointable</a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In libmedium::post</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">libmedium</a>::<wbr><a href="index.html">post</a>::<wbr><a class="struct" href="#">PositionMap</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/post.rs.html#277-280">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>struct PositionMap<'a, 'b> {
|
||||
map: <a class="struct" href="https://doc.rust-lang.org/1.63.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Markup.html" title="struct libmedium::post::Markup">Markup</a><'a, 'b>>>,
|
||||
arr: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.i64.html">i64</a>>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.map" class="structfield small-section-header"><a href="#structfield.map" class="anchor field"></a><code>map: <a class="struct" href="https://doc.rust-lang.org/1.63.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Markup.html" title="struct libmedium::post::Markup">Markup</a><'a, 'b>>></code></span><span id="structfield.arr" class="structfield small-section-header"><a href="#structfield.arr" class="anchor field"></a><code>arr: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.i64.html">i64</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/post.rs.html#282-291">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section></summary><div class="impl-items"><section id="method.insert_if_not_exists" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/post.rs.html#283-290">source</a></span><a href="#method.insert_if_not_exists" class="anchor"></a><h4 class="code-header">fn <a href="#method.insert_if_not_exists" class="fnname">insert_if_not_exists</a>(&mut self, pos: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.i64.html">i64</a>, m: <a class="struct" href="struct.Markup.html" title="struct libmedium::post::Markup">Markup</a><'a, 'b>)</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/post.rs.html#276">source</a></span><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/post.rs.html#276">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h4></section></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.63.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<'a, 'b> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.PositionMap.html" title="struct libmedium::post::PositionMap">PositionMap</a><'a, 'b></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#203-207">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#218-222">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#557-562">source</a></span><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Instrument" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#276">source</a></span><a href="#impl-Instrument" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#82">source</a></span><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.30/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'><p>Instruments this type with the provided <a href="https://docs.rs/tracing/0.1.30/tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#121">source</a></span><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'><p>Instruments this type with the <a href="https://docs.rs/tracing/0.1.30/tracing/span/struct.Span.html#method.current">current</a> <a href="https://docs.rs/tracing/0.1.30/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#541-552">source</a></span><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#549">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||||
<p>That is, this conversion is whatever the implementation of
|
||||
<code><a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html" title="From">From</a><T> for U</code> chooses to do.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Pointable" class="impl has-srclink"><a href="#impl-Pointable" class="anchor"></a><h3 class="code-header in-band">impl<T> Pointable for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.ALIGN" class="anchor"></a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a> = mem::align_of::<T>()</h4></section></summary><div class='docblock'><p>The alignment of pointer.</p>
|
||||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Init" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'><p>The type for initializers.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.init" class="method trait-impl has-srclink"><a href="#method.init" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">init</a>(init: <T as Pointable>::Init) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'><p>Initializes a with the given initializer. <a>Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><a href="#method.deref" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">deref</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&'a </a>T</h4></section></summary><div class='docblock'><p>Dereferences the given pointer. <a>Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl has-srclink"><a href="#method.deref_mut" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">deref_mut</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&'a mut </a>T</h4></section></summary><div class='docblock'><p>Mutably dereferences the given pointer. <a>Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl has-srclink"><a href="#method.drop" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'><p>Drops the object pointed to by the given pointer. <a>Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/typenum/1.15.0/src/typenum/type_operators.rs.html#34-36">source</a></span><a href="#impl-Same%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'><p>Should always be <code>Self</code></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#598-607">source</a></span><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#604">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#583-592">source</a></span><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#589">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E" class="impl has-srclink"><a href="#impl-VZip%3CV%3E" class="anchor"></a><h3 class="code-header in-band">impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl has-srclink"><a href="#method.vzip" class="anchor"></a><h4 class="code-header">fn <a class="fnname">vzip</a>(self) -> V</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#334">source</a></span><a href="#impl-WithSubscriber" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#169-171">source</a></span><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://docs.rs/tracing-core/0.1.22/tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>, </span></h4></section></summary><div class='docblock'><p>Attaches the provided <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<a href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.30/src/tracing/instrument.rs.html#221">source</a></span><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'><p>Attaches the current <a href="https://docs.rs/tracing/0.1.30/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<a href="https://docs.rs/tracing/0.1.30/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.30/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></p>
|
||||
</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="constant" href="#">CACHE_AGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#28">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const CACHE_AGE: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u32.html">u32</a> = 60 * 60 * 24; // 86_400u32</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="constant" href="#">CACHE_AGE</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#29">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const CACHE_AGE: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.u32.html">u32</a> = 60 * 60 * 24; // 86_400u32</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="constant" href="#">INDEX</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#123">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const INDEX: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>LibMedium</title>\n </head>\n <body>\n <main>\n <div class=\"center\">\n <h1>LibMedium</h1>\n <p>A free and privacy-respecting medium proxy</p>\n <p>\n <a\n href=\"/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c\"\n >Demo Article</a\n >\n | <a href=\"https://github.com/realaravinth/libmedium\">Source Code</a>\n </p>\n </div>\n </main>\n </body>\n <style>\n * {\n padding: 0;\n margin: 0;\n }\n body {\n width: 100%;\n min-height: 100vh;\n display: block;\n }\n main {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 80%;\n height: 100vh;\n margin: auto;\n justify-content: space-between;\n }\n\n .center {\n margin: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n h1 {\n font-size: 3rem;\n }\n\n @media screen and (max-width: 1200px) {\n main {\n width: 90%;\n }\n\n img {\n display: block;\n }\n }\n </style>\n</html>\n";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="constant" href="#">INDEX</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#128">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const INDEX: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>LibMedium</title>\n </head>\n <body>\n <main>\n <div class=\"center\">\n <h1>LibMedium</h1>\n <p>A free and privacy-respecting medium proxy</p>\n <p>\n <a\n href=\"/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c\"\n >Demo Article</a\n >\n | <a href=\"https://github.com/realaravinth/libmedium\">Source Code</a>\n </p>\n </div>\n </main>\n </body>\n <style>\n * {\n padding: 0;\n margin: 0;\n }\n body {\n width: 100%;\n min-height: 100vh;\n display: block;\n }\n main {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 80%;\n height: 100vh;\n margin: auto;\n justify-content: space-between;\n }\n\n .center {\n margin: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n h1 {\n font-size: 3rem;\n }\n\n @media screen and (max-width: 1200px) {\n main {\n width: 90%;\n }\n\n img {\n display: block;\n }\n }\n </style>\n</html>\n";</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,5 +5,5 @@
|
|||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="fn" href="#">services</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#229-234">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn services(cfg: &mut ServiceConfig)</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="fn" href="#">services</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#237-242">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn services(cfg: &mut ServiceConfig)</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -5,7 +5,7 @@
|
|||
</a><h2 class="location"><a href="#">Module proxy</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">libmedium</a>::<wbr><a class="mod" href="#">proxy</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-278">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">libmedium</a>::<wbr><a class="mod" href="#">proxy</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-286">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="routes/index.html" title="libmedium::proxy::routes mod">routes</a></div><div class="item-right docblock-short"></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Post.html" title="libmedium::proxy::Post struct">Post</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.assets.html" title="libmedium::proxy::assets struct">assets</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.by_post_id.html" title="libmedium::proxy::by_post_id struct">by_post_id</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.index.html" title="libmedium::proxy::index struct">index</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.page.html" title="libmedium::proxy::page struct">page</a></div><div class="item-right docblock-short"></div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.CACHE_AGE.html" title="libmedium::proxy::CACHE_AGE constant">CACHE_AGE</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.INDEX.html" title="libmedium::proxy::INDEX constant">INDEX</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
</a><h2 class="location"><a href="#">Module routes</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../libmedium/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">libmedium</a>::<wbr><a href="../index.html">proxy</a>::<wbr><a class="mod" href="#">routes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/libmedium/proxy.rs.html#30-57">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">libmedium</a>::<wbr><a href="../index.html">proxy</a>::<wbr><a class="mod" href="#">routes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/libmedium/proxy.rs.html#31-58">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Proxy.html" title="libmedium::proxy::routes::Proxy struct">Proxy</a></div><div class="item-right docblock-short"></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
File diff suppressed because one or more lines are too long
|
@ -2,19 +2,20 @@
|
|||
</a><h2 class="location"></h2>
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Post</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.data">data</a></li><li><a href="#structfield.date">date</a></li><li><a href="#structfield.gists">gists</a></li><li><a href="#structfield.id">id</a></li><li><a href="#structfield.preview_img">preview_img</a></li><li><a href="#structfield.reading_time">reading_time</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Sealed">Sealed</a></li><li><a href="#impl-TemplateOnce">TemplateOnce</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Pointable">Pointable</a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
</a><h2 class="location"><a href="#">Post</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.data">data</a></li><li><a href="#structfield.date">date</a></li><li><a href="#structfield.gists">gists</a></li><li><a href="#structfield.id">id</a></li><li><a href="#structfield.paragraphs">paragraphs</a></li><li><a href="#structfield.preview_img">preview_img</a></li><li><a href="#structfield.reading_time">reading_time</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Sealed">Sealed</a></li><li><a href="#impl-TemplateOnce">TemplateOnce</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Pointable">Pointable</a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="struct" href="#">Post</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#114-121">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Post {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="struct" href="#">Post</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#118-126">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Post {
|
||||
pub data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a>,
|
||||
pub date: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub preview_img: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub reading_time: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>,
|
||||
pub id: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub gists: <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../data/struct.GistContent.html" title="struct libmedium::data::GistContent">GistContent</a>)>>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a></code></span><span id="structfield.date" class="structfield small-section-header"><a href="#structfield.date" class="anchor field"></a><code>date: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.preview_img" class="structfield small-section-header"><a href="#structfield.preview_img" class="anchor field"></a><code>preview_img: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.reading_time" class="structfield small-section-header"><a href="#structfield.reading_time" class="anchor field"></a><code>reading_time: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.gists" class="structfield small-section-header"><a href="#structfield.gists" class="anchor field"></a><code>gists: <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../data/struct.GistContent.html" title="struct libmedium::data::GistContent">GistContent</a>)>></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TemplateOnce" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#111">source</a></span><a href="#impl-TemplateOnce" class="anchor"></a><h3 class="code-header in-band">impl TemplateOnce for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.render_once" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#111">source</a></span><a href="#method.render_once" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once</a>(self) -> RenderResult</h4></section></summary><div class='docblock'><p>Render the template and return the rendering result as <code>RenderResult</code> <a>Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.render_once_to" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#111">source</a></span><a href="#method.render_once_to" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once_to</a>(self, __sf_buf: &mut Buffer) -> <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a>, RenderError></h4></section></summary><div class='docblock'><p>Render the template and append the result to <code>buf</code>. <a>Read more</a></p>
|
||||
</div></details></div></details><section id="impl-Sealed" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#111">source</a></span><a href="#impl-Sealed" class="anchor"></a><h3 class="code-header in-band">impl Sealed for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#203-207">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
pub paragraphs: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a></code></span><span id="structfield.date" class="structfield small-section-header"><a href="#structfield.date" class="anchor field"></a><code>date: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.preview_img" class="structfield small-section-header"><a href="#structfield.preview_img" class="anchor field"></a><code>preview_img: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.reading_time" class="structfield small-section-header"><a href="#structfield.reading_time" class="anchor field"></a><code>reading_time: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.gists" class="structfield small-section-header"><a href="#structfield.gists" class="anchor field"></a><code>gists: <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../data/struct.GistContent.html" title="struct libmedium::data::GistContent">GistContent</a>)>></code></span><span id="structfield.paragraphs" class="structfield small-section-header"><a href="#structfield.paragraphs" class="anchor field"></a><code>paragraphs: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TemplateOnce" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#115">source</a></span><a href="#impl-TemplateOnce" class="anchor"></a><h3 class="code-header in-band">impl TemplateOnce for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.render_once" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#115">source</a></span><a href="#method.render_once" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once</a>(self) -> RenderResult</h4></section></summary><div class='docblock'><p>Render the template and return the rendering result as <code>RenderResult</code> <a>Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.render_once_to" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#115">source</a></span><a href="#method.render_once_to" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once_to</a>(self, __sf_buf: &mut Buffer) -> <a class="enum" href="https://doc.rust-lang.org/1.63.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a>, RenderError></h4></section></summary><div class='docblock'><p>Render the template and append the result to <code>buf</code>. <a>Read more</a></p>
|
||||
</div></details></div></details><section id="impl-Sealed" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#115">source</a></span><a href="#impl-Sealed" class="anchor"></a><h3 class="code-header in-band">impl Sealed for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#203-207">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#218-222">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#557-562">source</a></span><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,8 +5,8 @@
|
|||
</a><h2 class="location"><a href="#">StringUtils</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.slice">slice</a></li><li><a href="#tymethod.substring">substring</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-StringUtils-for-str">str</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In libmedium::proxy</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Trait <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="trait" href="#">StringUtils</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#61-64">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait StringUtils {
|
||||
<h1 class="fqn"><span class="in-band">Trait <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="trait" href="#">StringUtils</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/libmedium/proxy.rs.html#62-65">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait StringUtils {
|
||||
fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a>;
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.substring" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#62">source</a></div><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></div><div id="tymethod.slice" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#63">source</a></div><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></div></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-StringUtils-for-str" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#66-109">source</a></span><a href="#impl-StringUtils-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StringUtils.html" title="trait libmedium::proxy::StringUtils">StringUtils</a> for <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.substring" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#67-96">source</a></span><a href="#method.substring" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></section><section id="method.slice" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#97-108">source</a></span><a href="#method.slice" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/libmedium/proxy/trait.StringUtils.js" data-ignore-extern-crates="std" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.substring" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#63">source</a></div><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></div><div id="tymethod.slice" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#64">source</a></div><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></div></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-StringUtils-for-str" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#67-113">source</a></span><a href="#impl-StringUtils-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StringUtils.html" title="trait libmedium::proxy::StringUtils">StringUtils</a> for <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.substring" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#68-97">source</a></span><a href="#method.substring" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></section><section id="method.slice" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#98-112">source</a></span><a href="#method.slice" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/libmedium/proxy/trait.StringUtils.js" data-ignore-extern-crates="std" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -1 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"constant":[["CACHE_AGE",""],["GIT_COMMIT_HASH",""],["PKG_DESCRIPTION",""],["PKG_HOMEPAGE",""],["PKG_NAME",""],["V1_API_ROUTES",""],["VERSION",""]],"fn":[["get_json_err",""],["main",""]],"mod":[["data",""],["meta",""],["proxy",""],["render_html",""],["routes",""],["settings",""]],"struct":[["Data",""],["SETTINGS",""],["Settings",""]],"type":[["AppData",""]]};
|
||||
window.SIDEBAR_ITEMS = {"constant":[["CACHE_AGE",""],["GIT_COMMIT_HASH",""],["PKG_DESCRIPTION",""],["PKG_HOMEPAGE",""],["PKG_NAME",""],["V1_API_ROUTES",""],["VERSION",""]],"fn":[["get_json_err",""],["main",""]],"mod":[["data",""],["meta",""],["post",""],["proxy",""],["render_html",""],["routes",""],["settings",""]],"struct":[["Data",""],["SETTINGS",""],["Settings",""]],"type":[["AppData",""]]};
|
|
@ -5,11 +5,11 @@
|
|||
</a><h2 class="location"><a href="#">SETTINGS</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.__private_field">__private_field</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Deref">Deref</a></li><li><a href="#impl-LazyStatic">LazyStatic</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Pointable">Pointable</a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In libmedium</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../libmedium/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">libmedium</a>::<wbr><a class="struct" href="#">SETTINGS</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#38-40">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct SETTINGS {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">libmedium</a>::<wbr><a class="struct" href="#">SETTINGS</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/libmedium/main.rs.html#39-41">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct SETTINGS {
|
||||
pub(crate) __private_field: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.__private_field" class="structfield small-section-header"><a href="#structfield.__private_field" class="anchor field"></a><code>__private_field: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deref" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#38-40">source</a></span><a href="#impl-Deref" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Target" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="settings/struct.Settings.html" title="struct libmedium::settings::Settings">Settings</a></h4></section></summary><div class='docblock'><p>The resulting type after dereferencing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#38-40">source</a></span><a href="#method.deref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&self) -> &<a class="struct" href="settings/struct.Settings.html" title="struct libmedium::settings::Settings">Settings</a></h4></section></summary><div class='docblock'><p>Dereferences the value.</p>
|
||||
</div></details></div></details><section id="impl-LazyStatic" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#38-40">source</a></span><a href="#impl-LazyStatic" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html" title="trait lazy_static::LazyStatic">LazyStatic</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#203-207">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.__private_field" class="structfield small-section-header"><a href="#structfield.__private_field" class="anchor field"></a><code>__private_field: <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.unit.html">()</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deref" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#39-41">source</a></span><a href="#impl-Deref" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Target" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="settings/struct.Settings.html" title="struct libmedium::settings::Settings">Settings</a></h4></section></summary><div class='docblock'><p>The resulting type after dereferencing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#39-41">source</a></span><a href="#method.deref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&self) -> &<a class="struct" href="settings/struct.Settings.html" title="struct libmedium::settings::Settings">Settings</a></h4></section></summary><div class='docblock'><p>Dereferences the value.</p>
|
||||
</div></details></div></details><section id="impl-LazyStatic" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/libmedium/main.rs.html#39-41">source</a></span><a href="#impl-LazyStatic" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html" title="trait lazy_static::LazyStatic">LazyStatic</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.SETTINGS.html" title="struct libmedium::SETTINGS">SETTINGS</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#203-207">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.63.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#218-222">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.63.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.63.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#557-562">source</a></span><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.63.0/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.63.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,3 @@
|
|||
var sourcesIndex = {};
|
||||
sourcesIndex["libmedium"] = {"name":"","files":["data.rs","main.rs","meta.rs","proxy.rs","render_html.rs","routes.rs","settings.rs"]};
|
||||
sourcesIndex["libmedium"] = {"name":"","files":["data.rs","main.rs","meta.rs","post.rs","proxy.rs","render_html.rs","routes.rs","settings.rs"]};
|
||||
createSourceSidebar();
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
<span id="92">92</span>
|
||||
<span id="93">93</span>
|
||||
<span id="94">94</span>
|
||||
<span id="95">95</span>
|
||||
</pre><pre class="rust"><code><span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
*
|
||||
|
@ -125,6 +126,7 @@
|
|||
|
||||
<span class="kw">mod</span> <span class="ident">data</span>;
|
||||
<span class="kw">mod</span> <span class="ident">meta</span>;
|
||||
<span class="kw">mod</span> <span class="ident">post</span>;
|
||||
<span class="kw">mod</span> <span class="ident">proxy</span>;
|
||||
<span class="kw">mod</span> <span class="ident">render_html</span>;
|
||||
<span class="kw">mod</span> <span class="ident">routes</span>;
|
||||
|
|
749
src/libmedium/post.rs.html
Normal file
749
src/libmedium/post.rs.html
Normal file
|
@ -0,0 +1,749 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/post.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>post.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../source-script.js"></script><script defer src="../../source-files.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"></h2>
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../libmedium/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../libmedium/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
|
||||
<span id="2">2</span>
|
||||
<span id="3">3</span>
|
||||
<span id="4">4</span>
|
||||
<span id="5">5</span>
|
||||
<span id="6">6</span>
|
||||
<span id="7">7</span>
|
||||
<span id="8">8</span>
|
||||
<span id="9">9</span>
|
||||
<span id="10">10</span>
|
||||
<span id="11">11</span>
|
||||
<span id="12">12</span>
|
||||
<span id="13">13</span>
|
||||
<span id="14">14</span>
|
||||
<span id="15">15</span>
|
||||
<span id="16">16</span>
|
||||
<span id="17">17</span>
|
||||
<span id="18">18</span>
|
||||
<span id="19">19</span>
|
||||
<span id="20">20</span>
|
||||
<span id="21">21</span>
|
||||
<span id="22">22</span>
|
||||
<span id="23">23</span>
|
||||
<span id="24">24</span>
|
||||
<span id="25">25</span>
|
||||
<span id="26">26</span>
|
||||
<span id="27">27</span>
|
||||
<span id="28">28</span>
|
||||
<span id="29">29</span>
|
||||
<span id="30">30</span>
|
||||
<span id="31">31</span>
|
||||
<span id="32">32</span>
|
||||
<span id="33">33</span>
|
||||
<span id="34">34</span>
|
||||
<span id="35">35</span>
|
||||
<span id="36">36</span>
|
||||
<span id="37">37</span>
|
||||
<span id="38">38</span>
|
||||
<span id="39">39</span>
|
||||
<span id="40">40</span>
|
||||
<span id="41">41</span>
|
||||
<span id="42">42</span>
|
||||
<span id="43">43</span>
|
||||
<span id="44">44</span>
|
||||
<span id="45">45</span>
|
||||
<span id="46">46</span>
|
||||
<span id="47">47</span>
|
||||
<span id="48">48</span>
|
||||
<span id="49">49</span>
|
||||
<span id="50">50</span>
|
||||
<span id="51">51</span>
|
||||
<span id="52">52</span>
|
||||
<span id="53">53</span>
|
||||
<span id="54">54</span>
|
||||
<span id="55">55</span>
|
||||
<span id="56">56</span>
|
||||
<span id="57">57</span>
|
||||
<span id="58">58</span>
|
||||
<span id="59">59</span>
|
||||
<span id="60">60</span>
|
||||
<span id="61">61</span>
|
||||
<span id="62">62</span>
|
||||
<span id="63">63</span>
|
||||
<span id="64">64</span>
|
||||
<span id="65">65</span>
|
||||
<span id="66">66</span>
|
||||
<span id="67">67</span>
|
||||
<span id="68">68</span>
|
||||
<span id="69">69</span>
|
||||
<span id="70">70</span>
|
||||
<span id="71">71</span>
|
||||
<span id="72">72</span>
|
||||
<span id="73">73</span>
|
||||
<span id="74">74</span>
|
||||
<span id="75">75</span>
|
||||
<span id="76">76</span>
|
||||
<span id="77">77</span>
|
||||
<span id="78">78</span>
|
||||
<span id="79">79</span>
|
||||
<span id="80">80</span>
|
||||
<span id="81">81</span>
|
||||
<span id="82">82</span>
|
||||
<span id="83">83</span>
|
||||
<span id="84">84</span>
|
||||
<span id="85">85</span>
|
||||
<span id="86">86</span>
|
||||
<span id="87">87</span>
|
||||
<span id="88">88</span>
|
||||
<span id="89">89</span>
|
||||
<span id="90">90</span>
|
||||
<span id="91">91</span>
|
||||
<span id="92">92</span>
|
||||
<span id="93">93</span>
|
||||
<span id="94">94</span>
|
||||
<span id="95">95</span>
|
||||
<span id="96">96</span>
|
||||
<span id="97">97</span>
|
||||
<span id="98">98</span>
|
||||
<span id="99">99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
<span id="102">102</span>
|
||||
<span id="103">103</span>
|
||||
<span id="104">104</span>
|
||||
<span id="105">105</span>
|
||||
<span id="106">106</span>
|
||||
<span id="107">107</span>
|
||||
<span id="108">108</span>
|
||||
<span id="109">109</span>
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
<span id="127">127</span>
|
||||
<span id="128">128</span>
|
||||
<span id="129">129</span>
|
||||
<span id="130">130</span>
|
||||
<span id="131">131</span>
|
||||
<span id="132">132</span>
|
||||
<span id="133">133</span>
|
||||
<span id="134">134</span>
|
||||
<span id="135">135</span>
|
||||
<span id="136">136</span>
|
||||
<span id="137">137</span>
|
||||
<span id="138">138</span>
|
||||
<span id="139">139</span>
|
||||
<span id="140">140</span>
|
||||
<span id="141">141</span>
|
||||
<span id="142">142</span>
|
||||
<span id="143">143</span>
|
||||
<span id="144">144</span>
|
||||
<span id="145">145</span>
|
||||
<span id="146">146</span>
|
||||
<span id="147">147</span>
|
||||
<span id="148">148</span>
|
||||
<span id="149">149</span>
|
||||
<span id="150">150</span>
|
||||
<span id="151">151</span>
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
<span id="154">154</span>
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
<span id="174">174</span>
|
||||
<span id="175">175</span>
|
||||
<span id="176">176</span>
|
||||
<span id="177">177</span>
|
||||
<span id="178">178</span>
|
||||
<span id="179">179</span>
|
||||
<span id="180">180</span>
|
||||
<span id="181">181</span>
|
||||
<span id="182">182</span>
|
||||
<span id="183">183</span>
|
||||
<span id="184">184</span>
|
||||
<span id="185">185</span>
|
||||
<span id="186">186</span>
|
||||
<span id="187">187</span>
|
||||
<span id="188">188</span>
|
||||
<span id="189">189</span>
|
||||
<span id="190">190</span>
|
||||
<span id="191">191</span>
|
||||
<span id="192">192</span>
|
||||
<span id="193">193</span>
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
<span id="196">196</span>
|
||||
<span id="197">197</span>
|
||||
<span id="198">198</span>
|
||||
<span id="199">199</span>
|
||||
<span id="200">200</span>
|
||||
<span id="201">201</span>
|
||||
<span id="202">202</span>
|
||||
<span id="203">203</span>
|
||||
<span id="204">204</span>
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</span>
|
||||
<span id="211">211</span>
|
||||
<span id="212">212</span>
|
||||
<span id="213">213</span>
|
||||
<span id="214">214</span>
|
||||
<span id="215">215</span>
|
||||
<span id="216">216</span>
|
||||
<span id="217">217</span>
|
||||
<span id="218">218</span>
|
||||
<span id="219">219</span>
|
||||
<span id="220">220</span>
|
||||
<span id="221">221</span>
|
||||
<span id="222">222</span>
|
||||
<span id="223">223</span>
|
||||
<span id="224">224</span>
|
||||
<span id="225">225</span>
|
||||
<span id="226">226</span>
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
<span id="240">240</span>
|
||||
<span id="241">241</span>
|
||||
<span id="242">242</span>
|
||||
<span id="243">243</span>
|
||||
<span id="244">244</span>
|
||||
<span id="245">245</span>
|
||||
<span id="246">246</span>
|
||||
<span id="247">247</span>
|
||||
<span id="248">248</span>
|
||||
<span id="249">249</span>
|
||||
<span id="250">250</span>
|
||||
<span id="251">251</span>
|
||||
<span id="252">252</span>
|
||||
<span id="253">253</span>
|
||||
<span id="254">254</span>
|
||||
<span id="255">255</span>
|
||||
<span id="256">256</span>
|
||||
<span id="257">257</span>
|
||||
<span id="258">258</span>
|
||||
<span id="259">259</span>
|
||||
<span id="260">260</span>
|
||||
<span id="261">261</span>
|
||||
<span id="262">262</span>
|
||||
<span id="263">263</span>
|
||||
<span id="264">264</span>
|
||||
<span id="265">265</span>
|
||||
<span id="266">266</span>
|
||||
<span id="267">267</span>
|
||||
<span id="268">268</span>
|
||||
<span id="269">269</span>
|
||||
<span id="270">270</span>
|
||||
<span id="271">271</span>
|
||||
<span id="272">272</span>
|
||||
<span id="273">273</span>
|
||||
<span id="274">274</span>
|
||||
<span id="275">275</span>
|
||||
<span id="276">276</span>
|
||||
<span id="277">277</span>
|
||||
<span id="278">278</span>
|
||||
<span id="279">279</span>
|
||||
<span id="280">280</span>
|
||||
<span id="281">281</span>
|
||||
<span id="282">282</span>
|
||||
<span id="283">283</span>
|
||||
<span id="284">284</span>
|
||||
<span id="285">285</span>
|
||||
<span id="286">286</span>
|
||||
<span id="287">287</span>
|
||||
<span id="288">288</span>
|
||||
<span id="289">289</span>
|
||||
<span id="290">290</span>
|
||||
<span id="291">291</span>
|
||||
<span id="292">292</span>
|
||||
<span id="293">293</span>
|
||||
<span id="294">294</span>
|
||||
<span id="295">295</span>
|
||||
<span id="296">296</span>
|
||||
<span id="297">297</span>
|
||||
<span id="298">298</span>
|
||||
<span id="299">299</span>
|
||||
<span id="300">300</span>
|
||||
<span id="301">301</span>
|
||||
<span id="302">302</span>
|
||||
<span id="303">303</span>
|
||||
<span id="304">304</span>
|
||||
<span id="305">305</span>
|
||||
<span id="306">306</span>
|
||||
<span id="307">307</span>
|
||||
<span id="308">308</span>
|
||||
<span id="309">309</span>
|
||||
<span id="310">310</span>
|
||||
<span id="311">311</span>
|
||||
<span id="312">312</span>
|
||||
<span id="313">313</span>
|
||||
<span id="314">314</span>
|
||||
<span id="315">315</span>
|
||||
<span id="316">316</span>
|
||||
<span id="317">317</span>
|
||||
<span id="318">318</span>
|
||||
<span id="319">319</span>
|
||||
<span id="320">320</span>
|
||||
<span id="321">321</span>
|
||||
<span id="322">322</span>
|
||||
<span id="323">323</span>
|
||||
<span id="324">324</span>
|
||||
<span id="325">325</span>
|
||||
<span id="326">326</span>
|
||||
<span id="327">327</span>
|
||||
<span id="328">328</span>
|
||||
<span id="329">329</span>
|
||||
<span id="330">330</span>
|
||||
<span id="331">331</span>
|
||||
<span id="332">332</span>
|
||||
<span id="333">333</span>
|
||||
<span id="334">334</span>
|
||||
<span id="335">335</span>
|
||||
<span id="336">336</span>
|
||||
<span id="337">337</span>
|
||||
<span id="338">338</span>
|
||||
<span id="339">339</span>
|
||||
<span id="340">340</span>
|
||||
<span id="341">341</span>
|
||||
<span id="342">342</span>
|
||||
<span id="343">343</span>
|
||||
<span id="344">344</span>
|
||||
<span id="345">345</span>
|
||||
<span id="346">346</span>
|
||||
<span id="347">347</span>
|
||||
<span id="348">348</span>
|
||||
<span id="349">349</span>
|
||||
<span id="350">350</span>
|
||||
<span id="351">351</span>
|
||||
<span id="352">352</span>
|
||||
<span id="353">353</span>
|
||||
<span id="354">354</span>
|
||||
<span id="355">355</span>
|
||||
<span id="356">356</span>
|
||||
<span id="357">357</span>
|
||||
<span id="358">358</span>
|
||||
<span id="359">359</span>
|
||||
<span id="360">360</span>
|
||||
<span id="361">361</span>
|
||||
<span id="362">362</span>
|
||||
<span id="363">363</span>
|
||||
<span id="364">364</span>
|
||||
<span id="365">365</span>
|
||||
<span id="366">366</span>
|
||||
<span id="367">367</span>
|
||||
<span id="368">368</span>
|
||||
<span id="369">369</span>
|
||||
<span id="370">370</span>
|
||||
</pre><pre class="rust"><code><span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*/</span>
|
||||
<span class="kw">use</span> <span class="ident">std</span>::{<span class="ident">collections::HashMap</span>, <span class="ident">hash::Hash</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::data</span>::<span class="kw-2">*</span>;
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::proxy::StringUtils</span>;
|
||||
<span class="kw">use</span> <span class="ident">get_post</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Eq</span>, <span class="ident">PartialEq</span>)]</span>
|
||||
<span class="kw">enum</span> <span class="ident">PostitionType</span> {
|
||||
<span class="ident">Start</span>,
|
||||
<span class="ident">End</span>,
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Markup</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> {
|
||||
<span class="ident">markup</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">GetPostPostContentBodyModelParagraphsMarkups</span>,
|
||||
<span class="ident">p</span>: <span class="kw-2">&</span><span class="lifetime">'a</span> <span class="ident">GetPostPostContentBodyModelParagraphs</span>,
|
||||
<span class="ident">pos_type</span>: <span class="ident">PostitionType</span>,
|
||||
<span class="ident">gists</span>: <span class="kw-2">&</span><span class="lifetime">'b</span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">String</span>, <span class="ident"><span class="kw">crate</span>::data::GistContent</span>)<span class="op">></span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> <span class="ident">Markup</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> {
|
||||
<span class="kw">fn</span> <span class="ident">start</span>(
|
||||
<span class="ident">p</span>: <span class="kw-2">&</span><span class="ident">GetPostPostContentBodyModelParagraphs</span>,
|
||||
<span class="ident">gists</span>: <span class="kw-2">&</span><span class="lifetime">'b</span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">String</span>, <span class="ident"><span class="kw">crate</span>::data::GistContent</span>)<span class="op">></span><span class="op">></span>,
|
||||
<span class="ident">pindex</span>: <span class="ident">usize</span>,
|
||||
<span class="ident">in_oli</span>: <span class="kw-2">&mut</span> <span class="ident">bool</span>,
|
||||
) -> <span class="ident">String</span> {
|
||||
<span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"IMG"</span> {
|
||||
<span class="kw">let</span> <span class="ident">metadata</span> <span class="op">=</span> <span class="ident">p</span>.<span class="ident">metadata</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>();
|
||||
<span class="macro">format!</span>(
|
||||
<span class="string">r#"<figure><img width="{}" src="{}" /> <figcaption>"#</span>,
|
||||
<span class="ident">metadata</span>.<span class="ident">original_width</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>(),
|
||||
<span class="ident"><span class="kw">crate</span>::V1_API_ROUTES</span>.<span class="ident">proxy</span>.<span class="ident">get_medium_asset</span>(<span class="kw-2">&</span><span class="ident">metadata</span>.<span class="ident">id</span>)
|
||||
)
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"P"</span> {
|
||||
<span class="string">"<p>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"PRE"</span> {
|
||||
<span class="string">"<pre>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"BQ"</span> {
|
||||
<span class="string">"<blockquote>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H1"</span> {
|
||||
<span class="string">"<h1>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H2"</span> {
|
||||
<span class="string">"<h2>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H3"</span> {
|
||||
<span class="kw">if</span> <span class="ident">pindex</span> <span class="op">==</span> <span class="number">0</span> {
|
||||
<span class="macro">log::debug!</span>(<span class="string">"caught heading"</span>);
|
||||
<span class="string">""</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"<h3>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H4"</span> {
|
||||
<span class="string">"<h4>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H5"</span> {
|
||||
<span class="string">"<h5>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H6"</span> {
|
||||
<span class="string">"<h6>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"IFRAME"</span> {
|
||||
<span class="kw">let</span> <span class="ident">src</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">p</span>
|
||||
.<span class="ident">iframe</span>
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">media_resource</span>
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">href</span>;
|
||||
<span class="kw">if</span> <span class="ident">src</span>.<span class="ident">contains</span>(<span class="string">"gist.github.com"</span>) {
|
||||
<span class="kw">let</span> <span class="ident">gist_id</span> <span class="op">=</span> <span class="ident"><span class="kw">crate</span>::data::Data::get_gist_id</span>(<span class="ident">src</span>);
|
||||
<span class="kw">let</span> (<span class="kw">_</span>, <span class="ident">gist</span>) <span class="op">=</span> <span class="ident">gists</span>
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">find</span>(<span class="op">|</span>(<span class="ident">id</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="ident">id</span> <span class="op">==</span> <span class="ident">gist_id</span>)
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">gists</span> <span class="op">=</span> <span class="ident">String::default</span>();
|
||||
<span class="kw">for</span> <span class="ident">file</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">gist</span>.<span class="ident">files</span> {
|
||||
<span class="ident">gists</span> <span class="op">+</span><span class="op">=</span> <span class="kw-2">&</span><span class="macro">format!</span>(
|
||||
<span class="string">r#"<div class="code-block gist-block">{}</div>"#</span>,
|
||||
<span class="ident">file</span>.<span class="ident">get_html_content</span>()
|
||||
);
|
||||
}
|
||||
<span class="macro">format!</span>(
|
||||
<span class="string">r#"<div class="gist_container">{gists}
|
||||
<a class="gist_link" href="{}" target="_blank">See gist on GitHub</a>"#</span>,
|
||||
<span class="kw-2">&</span><span class="ident">gist</span>.<span class="ident">html_url</span>
|
||||
)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">format!</span>(<span class="string">r#"<iframe src="{src}" frameborder="0">"#</span>)
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"OLI"</span> {
|
||||
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">in_oli</span> {
|
||||
<span class="string">"<li>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw-2">*</span><span class="ident">in_oli</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
<span class="string">"<ul><li>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">log::info!</span>(<span class="string">"Unknown type"</span>);
|
||||
<span class="string">r#"
|
||||
<p class="libmedium__meta">
|
||||
<b>From LibMedium:</b> LibMedium is built by reverse
|
||||
engineering the Meduim's internal API. This post contains
|
||||
markup(formatting rules) that we are unaware of.
|
||||
Please report this URL <a
|
||||
href="https://github.com/realaravinth/libmedium/issues/1"
|
||||
rel="noreferrer">on our bug tracker</a> so that we can
|
||||
improve page rendering.
|
||||
<br />
|
||||
Alternatively, you can also email me at realaravinth at batsense dot net!
|
||||
</p>
|
||||
<span>"#</span>
|
||||
.<span class="ident">into</span>()
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">end</span>(<span class="ident">p</span>: <span class="kw-2">&</span><span class="ident">GetPostPostContentBodyModelParagraphs</span>, <span class="ident">pindex</span>: <span class="ident">usize</span>, <span class="ident">in_oli</span>: <span class="kw-2">&mut</span> <span class="ident">bool</span>) -> <span class="ident">String</span> {
|
||||
<span class="kw">let</span> <span class="ident">resp</span>: <span class="ident">String</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"IMG"</span> {
|
||||
<span class="string">"</figcaption></figure>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"P"</span> {
|
||||
<span class="string">"</p>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"PRE"</span> {
|
||||
<span class="string">"</pre>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"BQ"</span> {
|
||||
<span class="string">"</blockquote>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H1"</span> {
|
||||
<span class="string">"</h1>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H2"</span> {
|
||||
<span class="string">"</h2>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H3"</span> {
|
||||
<span class="kw">if</span> <span class="ident">pindex</span> <span class="op">==</span> <span class="number">0</span> {
|
||||
<span class="macro">log::debug!</span>(<span class="string">"caught heading"</span>);
|
||||
<span class="string">""</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</h3>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H4"</span> {
|
||||
<span class="string">"</h4>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H5"</span> {
|
||||
<span class="string">"</h5>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H6"</span> {
|
||||
<span class="string">"</h6>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"IFRAME"</span> {
|
||||
<span class="kw">let</span> <span class="ident">src</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">p</span>
|
||||
.<span class="ident">iframe</span>
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">media_resource</span>
|
||||
.<span class="ident">as_ref</span>()
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">href</span>;
|
||||
<span class="kw">if</span> <span class="ident">src</span>.<span class="ident">contains</span>(<span class="string">"gist.github.com"</span>) {
|
||||
<span class="string">"</div>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</iframe>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"OLI"</span> {
|
||||
<span class="string">"</li>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</span>"</span>.<span class="ident">into</span>()
|
||||
};
|
||||
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">in_oli</span> {
|
||||
<span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">!</span><span class="op">=</span> <span class="string">"OLL"</span> {
|
||||
<span class="kw-2">*</span><span class="ident">in_oli</span> <span class="op">=</span> <span class="bool-val">false</span>;
|
||||
<span class="macro">format!</span>(<span class="string">"</ul>{resp}"</span>)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">resp</span>
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">resp</span>
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">apply_markup</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">pindex</span>: <span class="ident">usize</span>) -> <span class="ident">String</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"A"</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">anchor_type</span>) <span class="op">=</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">anchor_type</span> {
|
||||
<span class="kw">if</span> <span class="ident">anchor_type</span> <span class="op">==</span> <span class="string">"LINK"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="macro">format!</span>(
|
||||
<span class="string">r#"<a rel="noreferrer" href="{}">"#</span>,
|
||||
<span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">href</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>()
|
||||
)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</a>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">anchor_type</span> <span class="op">==</span> <span class="string">"USER"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="macro">format!</span>(
|
||||
<span class="string">r#"<a rel="noreferrer" href="https://medium.com/u/{}">"#</span>,
|
||||
<span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">user_id</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>()
|
||||
)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</a>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="comment">// log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);</span>
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<span>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</span>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="comment">// log::error!("unknown markup.anchor_type: {:?} post id {}", anchor_type, id);</span>
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<span>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</span>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"PRE"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<pre>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</pre>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"EM"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<em>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</em>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"STRONG"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<strong>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</strong>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="self">self</span>.<span class="ident">markup</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"CODE"</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="string">"<code>"</span>.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</code>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="comment">// log::error!("unknown markup.type_: {:?} post id {}", markup.type_, id);</span>
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pos_type</span> <span class="op">==</span> <span class="ident">PostitionType::Start</span> {
|
||||
<span class="macro">log::info!</span>(<span class="string">"Unknown type"</span>);
|
||||
<span class="string">r#"
|
||||
<p class="libmedium__meta">
|
||||
<b>From LibMedium:</b> LibMedium is built by reverse
|
||||
engineering the Meduim's internal API. This post contains
|
||||
markup(formatting rules) that we are unaware of.
|
||||
Please report this URL <a
|
||||
href="https://github.com/realaravinth/libmedium/issues/1"
|
||||
rel="noreferrer">on our bug tracker</a> so that we can
|
||||
improve page rendering.
|
||||
<br />
|
||||
Alternatively, you can also email me at realaravinth at batsense dot net!
|
||||
</p>
|
||||
<span>"#</span>
|
||||
.<span class="ident">into</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"</span>"</span>.<span class="ident">into</span>()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Default</span>)]</span>
|
||||
<span class="kw">struct</span> <span class="ident">PositionMap</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> {
|
||||
<span class="ident">map</span>: <span class="ident">HashMap</span><span class="op"><</span><span class="ident">i64</span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">Markup</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span><span class="op">></span><span class="op">></span>,
|
||||
<span class="ident">arr</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">i64</span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> <span class="ident">PositionMap</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span> {
|
||||
<span class="kw">fn</span> <span class="ident">insert_if_not_exists</span>(<span class="kw-2">&mut</span> <span class="self">self</span>, <span class="ident">pos</span>: <span class="ident">i64</span>, <span class="ident">m</span>: <span class="ident">Markup</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="lifetime">'b</span><span class="op">></span>) {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">markups</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">map</span>.<span class="ident">get_mut</span>(<span class="kw-2">&</span><span class="ident">pos</span>) {
|
||||
<span class="ident">markups</span>.<span class="ident">push</span>(<span class="ident">m</span>);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="self">self</span>.<span class="ident">map</span>.<span class="ident">insert</span>(<span class="ident">pos</span>, <span class="macro">vec!</span>[<span class="ident">m</span>]);
|
||||
<span class="self">self</span>.<span class="ident">arr</span>.<span class="ident">push</span>(<span class="ident">pos</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">apply_markup</span><span class="op"><</span><span class="lifetime">'b</span><span class="op">></span>(
|
||||
<span class="ident">data</span>: <span class="kw-2">&</span><span class="ident">PostResp</span>,
|
||||
<span class="ident">gists</span>: <span class="kw-2">&</span><span class="lifetime">'b</span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">String</span>, <span class="ident"><span class="kw">crate</span>::data::GistContent</span>)<span class="op">></span><span class="op">></span>,
|
||||
) -> <span class="ident">Vec</span><span class="op"><</span><span class="ident">String</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">paragraphs</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">String</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec::with_capacity</span>(<span class="ident">data</span>.<span class="ident">content</span>.<span class="ident">body_model</span>.<span class="ident">paragraphs</span>.<span class="ident">len</span>());
|
||||
<span class="kw">for</span> (<span class="ident">pindex</span>, <span class="ident">p</span>) <span class="kw">in</span> <span class="ident">data</span>.<span class="ident">content</span>.<span class="ident">body_model</span>.<span class="ident">paragraphs</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pos</span> <span class="op">=</span> <span class="ident">PositionMap::default</span>();
|
||||
<span class="kw">if</span> <span class="ident">p</span>.<span class="ident">type_</span> <span class="op">==</span> <span class="string">"H3"</span> <span class="op">&&</span> <span class="ident">pindex</span> <span class="op">==</span> <span class="number">0</span> {
|
||||
<span class="macro">log::debug!</span>(<span class="string">"FOUND TOP LEVEL H3. Breaking"</span>);
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="ident">p</span>.<span class="ident">markups</span>.<span class="ident">iter</span>() {
|
||||
<span class="kw">let</span> <span class="ident">start_markup</span> <span class="op">=</span> <span class="ident">Markup</span> {
|
||||
<span class="ident">markup</span>: <span class="kw-2">&</span><span class="ident">m</span>,
|
||||
<span class="ident">p</span>,
|
||||
<span class="ident">gists</span>,
|
||||
<span class="ident">pos_type</span>: <span class="ident">PostitionType::Start</span>,
|
||||
};
|
||||
<span class="ident">pos</span>.<span class="ident">insert_if_not_exists</span>(<span class="ident">m</span>.<span class="ident">start</span>, <span class="ident">start_markup</span>);
|
||||
<span class="kw">let</span> <span class="ident">end_markup</span> <span class="op">=</span> <span class="ident">Markup</span> {
|
||||
<span class="ident">markup</span>: <span class="kw-2">&</span><span class="ident">m</span>,
|
||||
<span class="ident">p</span>,
|
||||
<span class="ident">gists</span>,
|
||||
<span class="ident">pos_type</span>: <span class="ident">PostitionType::End</span>,
|
||||
};
|
||||
|
||||
<span class="ident">pos</span>.<span class="ident">insert_if_not_exists</span>(<span class="ident">m</span>.<span class="ident">end</span>, <span class="ident">end_markup</span>);
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cur</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">incr_cur</span>(<span class="ident">cur</span>: <span class="ident">usize</span>, <span class="ident">point</span>: <span class="ident">i64</span>) -> <span class="ident">usize</span> {
|
||||
<span class="kw">let</span> <span class="ident">incr</span> <span class="op">=</span> <span class="ident">point</span> <span class="kw">as</span> <span class="ident">usize</span> <span class="op">-</span> <span class="ident">cur</span>;
|
||||
<span class="kw">let</span> <span class="ident">post_incr</span> <span class="op">=</span> <span class="ident">cur</span> <span class="op">+</span> <span class="ident">incr</span>;
|
||||
<span class="macro">log::debug!</span>(
|
||||
<span class="string">"cur before incr: {cur}, incr by: {}, post incr: {}"</span>,
|
||||
<span class="ident">incr</span>,
|
||||
<span class="ident">post_incr</span>
|
||||
);
|
||||
<span class="ident">post_incr</span>
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">content</span> <span class="op">=</span> <span class="ident">String::with_capacity</span>(<span class="ident">p</span>.<span class="ident">text</span>.<span class="ident">len</span>());
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">in_oli</span> <span class="op">=</span> <span class="bool-val">false</span>;
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">Markup::start</span>(<span class="kw-2">&</span><span class="ident">p</span>, <span class="kw-2">&</span><span class="ident">gists</span>, <span class="ident">pindex</span>, <span class="kw-2">&mut</span> <span class="ident">in_oli</span>);
|
||||
<span class="ident">pos</span>.<span class="ident">arr</span>.<span class="ident">sort</span>();
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">first</span>) <span class="op">=</span> <span class="ident">pos</span>.<span class="ident">arr</span>.<span class="ident">get</span>(<span class="number">0</span>) {
|
||||
<span class="comment">//content += p.text.substring(cur, *first as usize);</span>
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="ident">p</span>.<span class="ident">text</span>.<span class="ident">slice</span>(<span class="ident">cur</span>..<span class="kw-2">*</span><span class="ident">first</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
||||
<span class="ident">cur</span> <span class="op">=</span> <span class="ident">incr_cur</span>(<span class="ident">cur</span>, <span class="kw-2">*</span><span class="ident">first</span>);
|
||||
<span class="kw">for</span> <span class="ident">point</span> <span class="kw">in</span> <span class="ident">pos</span>.<span class="ident">arr</span>.<span class="ident">iter</span>() {
|
||||
<span class="comment">//content.push(p.text.substring(start, start + point);</span>
|
||||
<span class="comment">// if *point != 0 {</span>
|
||||
|
||||
<span class="kw">if</span> <span class="ident">cur</span> <span class="op">!</span><span class="op">=</span> <span class="kw-2">*</span><span class="ident">point</span> <span class="kw">as</span> <span class="ident">usize</span> {
|
||||
<span class="comment">// content += p.text.substring(cur, *point as usize);</span>
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="ident">p</span>.<span class="ident">text</span>.<span class="ident">slice</span>(<span class="ident">cur</span>..<span class="kw-2">*</span><span class="ident">point</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
||||
}
|
||||
<span class="comment">// }</span>
|
||||
<span class="kw">let</span> <span class="ident">pos_markups</span> <span class="op">=</span> <span class="ident">pos</span>.<span class="ident">map</span>.<span class="ident">get</span>(<span class="ident">point</span>).<span class="ident">unwrap</span>();
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="ident">pos_markups</span>.<span class="ident">iter</span>() {
|
||||
<span class="comment">// println!("{}", &m.apply_markup(pindex));</span>
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">m</span>.<span class="ident">apply_markup</span>(<span class="ident">pindex</span>);
|
||||
}
|
||||
<span class="ident">cur</span> <span class="op">=</span> <span class="ident">incr_cur</span>(<span class="ident">cur</span>, <span class="kw-2">*</span><span class="ident">point</span>);
|
||||
}
|
||||
<span class="macro">log::debug!</span>(<span class="string">"LAST"</span>);
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="ident">p</span>.<span class="ident">text</span>.<span class="ident">slice</span>(<span class="ident">cur</span>..);
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">Markup::end</span>(<span class="kw-2">&</span><span class="ident">p</span>, <span class="ident">pindex</span>, <span class="kw-2">&mut</span> <span class="ident">in_oli</span>);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">log::debug!</span>(<span class="string">"LAST WITH NO MARKUP"</span>);
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="ident">p</span>.<span class="ident">text</span>.<span class="ident">slice</span>(<span class="ident">cur</span>..);
|
||||
<span class="ident">content</span> <span class="op">+</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">Markup::end</span>(<span class="kw-2">&</span><span class="ident">p</span>, <span class="ident">pindex</span>, <span class="kw-2">&mut</span> <span class="ident">in_oli</span>);
|
||||
}
|
||||
<span class="ident">paragraphs</span>.<span class="ident">push</span>(<span class="ident">content</span>);
|
||||
}
|
||||
<span class="ident">paragraphs</span>
|
||||
}
|
||||
</code></pre></div>
|
||||
</section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
|
@ -282,6 +282,14 @@
|
|||
<span id="276">276</span>
|
||||
<span id="277">277</span>
|
||||
<span id="278">278</span>
|
||||
<span id="279">279</span>
|
||||
<span id="280">280</span>
|
||||
<span id="281">281</span>
|
||||
<span id="282">282</span>
|
||||
<span id="283">283</span>
|
||||
<span id="284">284</span>
|
||||
<span id="285">285</span>
|
||||
<span id="286">286</span>
|
||||
</pre><pre class="rust"><code><span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
*
|
||||
|
@ -307,6 +315,7 @@
|
|||
<span class="kw">use</span> <span class="ident">sailfish::TemplateOnce</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::data::PostResp</span>;
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::post::apply_markup</span>;
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::AppData</span>;
|
||||
|
||||
<span class="kw">const</span> <span class="ident">CACHE_AGE</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="number">60</span> <span class="op">*</span> <span class="number">60</span> <span class="op">*</span> <span class="number">24</span>;
|
||||
|
@ -383,11 +392,14 @@
|
|||
<span class="ident">Bound::Included</span>(<span class="ident">bound</span>) <span class="op">|</span> <span class="ident">Bound::Excluded</span>(<span class="ident">bound</span>) => <span class="kw-2">*</span><span class="ident">bound</span>,
|
||||
<span class="ident">Bound::Unbounded</span> => <span class="number">0</span>,
|
||||
};
|
||||
<span class="macro">log::debug!</span>(<span class="string">"{}"</span>, <span class="self">self</span>);
|
||||
<span class="macro">log::debug!</span>(<span class="string">"start: {start}"</span>);
|
||||
<span class="kw">let</span> <span class="ident">len</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">range</span>.<span class="ident">end_bound</span>() {
|
||||
<span class="ident">Bound::Included</span>(<span class="ident">bound</span>) => <span class="kw-2">*</span><span class="ident">bound</span> <span class="op">+</span> <span class="number">1</span>,
|
||||
<span class="ident">Bound::Excluded</span>(<span class="ident">bound</span>) => <span class="kw-2">*</span><span class="ident">bound</span>,
|
||||
<span class="ident">Bound::Unbounded</span> => <span class="self">self</span>.<span class="ident">len</span>(),
|
||||
} <span class="op">-</span> <span class="ident">start</span>;
|
||||
<span class="macro">log::debug!</span>(<span class="string">"len {len}"</span>);
|
||||
<span class="self">self</span>.<span class="ident">substring</span>(<span class="ident">start</span>, <span class="ident">len</span>)
|
||||
}
|
||||
}
|
||||
|
@ -402,6 +414,7 @@
|
|||
<span class="kw">pub</span> <span class="ident">reading_time</span>: <span class="ident">usize</span>,
|
||||
<span class="kw">pub</span> <span class="ident">id</span>: <span class="ident">String</span>,
|
||||
<span class="kw">pub</span> <span class="ident">gists</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">String</span>, <span class="ident"><span class="kw">crate</span>::data::GistContent</span>)<span class="op">></span><span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">paragraphs</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">const</span> <span class="ident">INDEX</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="macro">include_str!</span>(<span class="string">"../templates/index.html"</span>);
|
||||
|
@ -495,6 +508,8 @@
|
|||
.<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="ident">preview_img</span> <span class="op">=</span> <span class="ident"><span class="kw">crate</span>::V1_API_ROUTES</span>.<span class="ident">proxy</span>.<span class="ident">get_medium_asset</span>(<span class="ident">preview_img</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">paragraphs</span> <span class="op">=</span> <span class="ident">apply_markup</span>(<span class="kw-2">&</span><span class="ident">post_data</span>, <span class="kw-2">&</span><span class="ident">gists</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">page</span> <span class="op">=</span> <span class="ident">Post</span> {
|
||||
<span class="ident">id</span>: <span class="ident">id</span>.<span class="ident">to_owned</span>(),
|
||||
<span class="ident">data</span>: <span class="ident">post_data</span>,
|
||||
|
@ -502,6 +517,7 @@
|
|||
<span class="ident">gists</span>,
|
||||
<span class="ident">reading_time</span>,
|
||||
<span class="ident">preview_img</span>,
|
||||
<span class="ident">paragraphs</span>,
|
||||
};
|
||||
|
||||
<span class="kw">let</span> <span class="ident">page</span> <span class="op">=</span> <span class="ident">page</span>.<span class="ident">render_once</span>().<span class="ident">unwrap</span>();
|
||||
|
|
Loading…
Reference in a new issue