Skip to content

Commit

Permalink
Cargo doc auto deployment 2024-02-11 15:59:46.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed Feb 11, 2024
1 parent 5b297c2 commit 0de59e0
Show file tree
Hide file tree
Showing 74 changed files with 144 additions and 86 deletions.
52 changes: 45 additions & 7 deletions src/winsafe/kernel/funcs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,25 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<a href="#1956" id="1956">1956</a>
<a href="#1957" id="1957">1957</a>
<a href="#1958" id="1958">1958</a>
<a href="#1959" id="1959">1959</a>
<a href="#1960" id="1960">1960</a>
<a href="#1961" id="1961">1961</a>
<a href="#1962" id="1962">1962</a>
<a href="#1963" id="1963">1963</a>
<a href="#1964" id="1964">1964</a>
<a href="#1965" id="1965">1965</a>
<a href="#1966" id="1966">1966</a>
<a href="#1967" id="1967">1967</a>
<a href="#1968" id="1968">1968</a>
<a href="#1969" id="1969">1969</a>
<a href="#1970" id="1970">1970</a>
<a href="#1971" id="1971">1971</a>
<a href="#1972" id="1972">1972</a>
<a href="#1973" id="1973">1973</a>
<a href="#1974" id="1974">1974</a>
<a href="#1975" id="1975">1975</a>
<a href="#1976" id="1976">1976</a>
<a href="#1977" id="1977">1977</a>
</pre></div><pre class="rust"><code><span class="attr">#![allow(non_snake_case)]

</span><span class="kw">use </span>std::collections::HashMap;
Expand Down Expand Up @@ -2670,11 +2689,18 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
/// }
/// # Ok::&lt;_, winsafe::co::ERROR&gt;(())
/// ```
///
/// # Related functions
///
/// * [`GetPrivateProfileSectionNames`](crate::GetPrivateProfileSectionNames)
/// * [`GetPrivateProfileString`](crate::GetPrivateProfileString)
/// * [`WritePrivateProfileString`](crate::WritePrivateProfileString)
</span><span class="attr">#[must_use]
</span><span class="kw">pub fn </span>GetPrivateProfileSection(
section_name: <span class="kw-2">&amp;</span>str,
file_name: <span class="kw-2">&amp;</span>str,
) -&gt; SysResult&lt;Vec&lt;(String, String)&gt;&gt; {
) -&gt; SysResult&lt;Vec&lt;(String, String)&gt;&gt;
{
<span class="kw">let </span><span class="kw-2">mut </span>buf_sz = SSO_LEN; <span class="comment">// start with no string heap allocation
</span><span class="kw">loop </span>{
<span class="kw">let </span><span class="kw-2">mut </span>buf = WString::new_alloc_buf(buf_sz);
Expand Down Expand Up @@ -2724,6 +2750,12 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
/// }
/// # Ok::&lt;_, winsafe::co::ERROR&gt;(())
/// ```
///
/// # Related functions
///
/// * [`GetPrivateProfileSection`](crate::GetPrivateProfileSection)
/// * [`GetPrivateProfileString`](crate::GetPrivateProfileString)
/// * [`WritePrivateProfileString`](crate::WritePrivateProfileString)
</span><span class="attr">#[must_use]
</span><span class="kw">pub fn </span>GetPrivateProfileSectionNames(
file_name: <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>str&gt;,
Expand Down Expand Up @@ -2753,9 +2785,6 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="doccomment">/// [`GetPrivateProfileString`](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilestringw)
/// function.
///
/// The related writing function is
/// [`WritePrivateProfileString`](crate::WritePrivateProfileString).
///
/// # Examples
///
/// Reading from an INI file:
Expand All @@ -2773,6 +2802,12 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
/// println!("{}", val);
/// # Ok::&lt;_, winsafe::co::ERROR&gt;(())
/// ```
///
/// # Related functions
///
/// * [`GetPrivateProfileSection`](crate::GetPrivateProfileSection)
/// * [`GetPrivateProfileSectionNames`](crate::GetPrivateProfileSectionNames)
/// * [`WritePrivateProfileString`](crate::WritePrivateProfileString)
</span><span class="attr">#[must_use]
</span><span class="kw">pub fn </span>GetPrivateProfileString(
section_name: <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>str&gt;,
Expand Down Expand Up @@ -3880,9 +3915,6 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="doccomment">/// [`WritePrivateProfileString`](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-writeprivateprofilestringw)
/// function.
///
/// The related reading function is
/// [`GetPrivateProfileString`](crate::GetPrivateProfileString).
///
/// # Examples
///
/// Writing value into an INI file:
Expand All @@ -3898,6 +3930,12 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
/// )?;
/// # Ok::&lt;_, winsafe::co::ERROR&gt;(())
/// ```
///
/// # Related functions
///
/// * [`GetPrivateProfileSection`](crate::GetPrivateProfileSection)
/// * [`GetPrivateProfileSectionNames`](crate::GetPrivateProfileSectionNames)
/// * [`GetPrivateProfileString`](crate::GetPrivateProfileString)
</span><span class="kw">pub fn </span>WritePrivateProfileString(
section_name: <span class="kw-2">&amp;</span>str,
key_name: <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>str&gt;,
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/kernel/structs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
dwSize: u32,
cntUsage: u32,
<span class="kw">pub </span>th32ProcessID: u32,
th32DefaultHeapID: u64,
th32DefaultHeapID: usize,
th32ModuleID: u32,
<span class="kw">pub </span>cntThreads: u32,
<span class="kw">pub </span>th32ParentProcessID: u32,
Expand Down
4 changes: 2 additions & 2 deletions src/winsafe/macros/consts.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,8 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
}

<span class="kw">impl </span>From&lt;<span class="macro-nonterminal">$name</span>&gt; <span class="kw">for </span><span class="kw">crate</span>::kernel::decl::WString {
<span class="kw">fn </span>from(value: <span class="macro-nonterminal">$name</span>) -&gt; <span class="self">Self </span>{
<span class="kw">crate</span>::kernel::decl::WString::from_str(value.<span class="number">0</span>)
<span class="kw">fn </span>from(v: <span class="macro-nonterminal">$name</span>) -&gt; <span class="self">Self </span>{
<span class="kw">crate</span>::kernel::decl::WString::from_str(v.<span class="number">0</span>)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/winsafe/oleaut/structs/bstr.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
}

<span class="kw">impl </span>From&lt;BSTR&gt; <span class="kw">for </span>WString {
<span class="kw">fn </span>from(value: BSTR) -&gt; WString {
<span class="kw">unsafe </span>{ WString::from_wchars_nullt(value.as_ptr()) }
<span class="kw">fn </span>from(v: BSTR) -&gt; WString {
<span class="kw">unsafe </span>{ WString::from_wchars_nullt(v.as_ptr()) }
}
}

Expand Down
2 changes: 1 addition & 1 deletion winsafe/co/struct.SE_PRIV.html

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion winsafe/fn.GetPrivateProfileSection.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!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="`GetPrivateProfileSection` function."><title>GetPrivateProfileSection in winsafe - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-5bc39a1768837dd0.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="winsafe" data-themes="" data-resource-suffix="" data-rustdoc-version="1.78.0-nightly (8ace7ea1f 2024-02-07)" data-channel="nightly" data-search-js="search-dd67cee4cfa65049.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-4c98445ec4002617.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-48f368f3872407c8.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../winsafe/index.html">winsafe</a><span class="version">0.0.19</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../winsafe/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">winsafe</a>::<wbr><a class="fn" href="#">GetPrivateProfileSection</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/winsafe/kernel/funcs.rs.html#714-746">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn GetPrivateProfileSection(
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../winsafe/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">winsafe</a>::<wbr><a class="fn" href="#">GetPrivateProfileSection</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/winsafe/kernel/funcs.rs.html#720-753">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn GetPrivateProfileSection(
section_name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
file_name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
) -&gt; <a class="type" href="type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)&gt;&gt;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>kernel</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilesectionw"><code>GetPrivateProfileSection</code></a>
Expand All @@ -17,4 +17,10 @@ <h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<span class="kw">for </span>(key, val) <span class="kw">in </span>pairs.iter() {
<span class="macro">println!</span>(<span class="string">"{} = {}"</span>, key, val);
}</code></pre></div>
<h2 id="related-functions"><a class="doc-anchor" href="#related-functions">§</a>Related functions</h2>
<ul>
<li><a href="fn.GetPrivateProfileSectionNames.html" title="fn winsafe::GetPrivateProfileSectionNames"><code>GetPrivateProfileSectionNames</code></a></li>
<li><a href="fn.GetPrivateProfileString.html" title="fn winsafe::GetPrivateProfileString"><code>GetPrivateProfileString</code></a></li>
<li><a href="fn.WritePrivateProfileString.html" title="fn winsafe::WritePrivateProfileString"><code>WritePrivateProfileString</code></a></li>
</ul>
</div></details></section></div></main></body></html>
Loading

0 comments on commit 0de59e0

Please sign in to comment.