Skip to content

Commit

Permalink
Cargo doc auto deployment 2024-05-02 07:24:56.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed May 2, 2024
1 parent 34d4013 commit ac8047d
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions src/winsafe/gui/iterators.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
owner,
count: owner.items().count(),
current: <span class="number">0</span>,
buffer: WString::default(),
buffer: WString::new(),
}
}
}
Expand Down Expand Up @@ -590,7 +590,7 @@
owner,
count: owner.items().count(),
current: <span class="number">0</span>,
buffer: WString::default(),
buffer: WString::new(),
}
}
}
Expand Down Expand Up @@ -654,15 +654,15 @@
} <span class="kw">else </span>{
<span class="kw">match unsafe </span>{ owner.hwnd().SendMessage(lb::GetCurSel {}) } {
<span class="prelude-val">Some</span>(index) =&gt; <span class="macro">vec!</span>[index], <span class="comment">// single selection: at max 1
</span><span class="prelude-val">None </span>=&gt; Vec::&lt;u32&gt;::default(),
</span><span class="prelude-val">None </span>=&gt; Vec::&lt;u32&gt;::new(),
}
};

<span class="self">Self </span>{
owner,
indexes,
current: <span class="number">0</span>,
buffer: WString::default(),
buffer: WString::new(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/native_controls/combo_box.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@
window_ex_style: co::WS_EX::LEFT,
ctrl_id: <span class="number">0</span>,
resize_behavior: (Horz::None, Vert::None),
items: Vec::&lt;String&gt;::default(),
items: Vec::&lt;String&gt;::new(),
selected_item: <span class="prelude-val">None</span>,
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/native_controls/list_box.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
window_ex_style: co::WS_EX::LEFT | co::WS_EX::CLIENTEDGE,
ctrl_id: <span class="number">0</span>,
resize_behavior: (Horz::None, Vert::None),
items: Vec::&lt;String&gt;::default(),
items: Vec::&lt;String&gt;::new(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/native_controls/list_view.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@
ctrl_id: <span class="number">0</span>,
resize_behavior: (Horz::None, Vert::None),
context_menu: <span class="prelude-val">None</span>,
columns: Vec::&lt;(String, u32)&gt;::default(),
columns: Vec::&lt;(String, u32)&gt;::new(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/windows/raw_control.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@

<span class="kw">let </span>parent_hinst = self2.base().parent_hinstance()<span class="question-mark">?</span>;
<span class="kw">let </span><span class="kw-2">mut </span>wcx = WNDCLASSEX::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::new();
RawBase::fill_wndclassex(
<span class="kw-2">&amp;</span>parent_hinst,
opts.class_style, <span class="kw-2">&amp;</span>opts.class_icon, <span class="kw-2">&amp;</span>opts.class_icon,
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/windows/raw_main.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@

<span class="kw">let </span>hinst = HINSTANCE::GetModuleHandle(<span class="prelude-val">None</span>).unwrap();
<span class="kw">let </span><span class="kw-2">mut </span>wcx = WNDCLASSEX::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::new();
RawBase::fill_wndclassex(
<span class="kw-2">&amp;</span>hinst,
opts.class_style, <span class="kw-2">&amp;</span>opts.class_icon, <span class="kw-2">&amp;</span>opts.class_icon,
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/windows/raw_modal.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@

<span class="kw">let </span>parent_hinst = <span class="self">self</span>.base().parent_hinstance()<span class="question-mark">?</span>;
<span class="kw">let </span><span class="kw-2">mut </span>wcx = WNDCLASSEX::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::new();
RawBase::fill_wndclassex(
<span class="kw-2">&amp;</span>parent_hinst,
opts.class_style, <span class="kw-2">&amp;</span>opts.class_icon, <span class="kw-2">&amp;</span>opts.class_icon,
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/windows/raw_modeless.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@

<span class="kw">let </span>parent_hinst = self2.base().parent_hinstance()<span class="question-mark">?</span>;
<span class="kw">let </span><span class="kw-2">mut </span>wcx = WNDCLASSEX::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::new();
RawBase::fill_wndclassex(
<span class="kw-2">&amp;</span>parent_hinst,
opts.class_style, <span class="kw-2">&amp;</span>opts.class_icon, <span class="kw-2">&amp;</span>opts.class_icon,
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/gui/windows/window_message_only.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<span class="kw">fn </span>create(<span class="kw-2">&amp;</span><span class="self">self</span>) {
<span class="kw">let </span>hinst = HINSTANCE::GetModuleHandle(<span class="prelude-val">None</span>).unwrap();
<span class="kw">let </span><span class="kw-2">mut </span>wcx = WNDCLASSEX::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>class_name_buf = WString::new();
RawBase::fill_wndclassex(
<span class="kw-2">&amp;</span>hinst,
co::CS::default(), <span class="kw-2">&amp;</span>Icon::None, <span class="kw-2">&amp;</span>Icon::None,
Expand Down
4 changes: 2 additions & 2 deletions src/winsafe/kernel/funcs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3712,11 +3712,11 @@
) -&gt; SysResult&lt;()&gt;
{
<span class="kw">let </span><span class="kw-2">mut </span>name_buf = <span class="kw">match </span>name {
<span class="prelude-val">None </span>=&gt; (WString::default(), <span class="number">0</span>),
<span class="prelude-val">None </span>=&gt; (WString::new(), <span class="number">0</span>),
<span class="prelude-val">Some</span>(<span class="kw">_</span>) =&gt; (WString::new_alloc_buf(MAX_PATH + <span class="number">1</span>), MAX_PATH + <span class="number">1</span>),
};
<span class="kw">let </span><span class="kw-2">mut </span>sys_name_buf = <span class="kw">match </span>file_system_name {
<span class="prelude-val">None </span>=&gt; (WString::default(), <span class="number">0</span>),
<span class="prelude-val">None </span>=&gt; (WString::new(), <span class="number">0</span>),
<span class="prelude-val">Some</span>(<span class="kw">_</span>) =&gt; (WString::new_alloc_buf(MAX_PATH + <span class="number">1</span>), MAX_PATH + <span class="number">1</span>),
};

Expand Down
4 changes: 2 additions & 2 deletions src/winsafe/kernel/handles/hkey.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@
data: RegistryValue,
) -&gt; SysResult&lt;()&gt;
{
<span class="kw">let </span><span class="kw-2">mut </span>str_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>str_buf = WString::new();
<span class="kw">let </span>(data_ptr, data_len) = data.as_ptr_with_len(<span class="kw-2">&amp;mut </span>str_buf);

error_to_sysresult(
Expand Down Expand Up @@ -2066,7 +2066,7 @@
data: RegistryValue,
) -&gt; SysResult&lt;()&gt;
{
<span class="kw">let </span><span class="kw-2">mut </span>str_buf = WString::default();
<span class="kw">let </span><span class="kw-2">mut </span>str_buf = WString::new();
<span class="kw">let </span>(data_ptr, data_len) = data.as_ptr_with_len(<span class="kw-2">&amp;mut </span>str_buf);

error_to_sysresult(
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/kernel/privs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
</span><span class="attr">#[must_use]
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>parse_multi_z_str(src: <span class="kw-2">*const </span>u16) -&gt; Vec&lt;String&gt; {
<span class="kw">let </span><span class="kw-2">mut </span>src = src;
<span class="kw">let </span><span class="kw-2">mut </span>strings = Vec::&lt;String&gt;::default();
<span class="kw">let </span><span class="kw-2">mut </span>strings = Vec::&lt;String&gt;::new();
<span class="kw">let </span><span class="kw-2">mut </span>i = <span class="number">0</span>;

<span class="kw">loop </span>{
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/ole/com_interfaces/ipicture.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let image_bytes: Vec&lt;u8&gt;; // initialized somewhere
/// # let image_bytes = Vec::&lt;u8&gt;::default();
/// # let image_bytes = Vec::&lt;u8&gt;::new();
///
/// let stream = w::SHCreateMemStream(&amp;image_bytes)?;
/// let ipic = w::OleLoadPicture(&amp;stream, None, true)?;
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/ole/com_interfaces/istream.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let raw_data: Vec&lt;u8&gt;; // initialized somewhere
/// # let raw_data = Vec::&lt;u8&gt;::default();
/// # let raw_data = Vec::&lt;u8&gt;::new();
///
/// let stream = w::SHCreateMemStream(&amp;raw_data)?;
/// # w::HrResult::Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/ole/structs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
<span class="doccomment">/// Converts the internal UTF-16 blocks into strings.
</span><span class="attr">#[must_use]
</span><span class="kw">pub fn </span>to_strings(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; Vec&lt;String&gt; {
<span class="kw">let </span><span class="kw-2">mut </span>vec = Vec::&lt;String&gt;::default();
<span class="kw">let </span><span class="kw-2">mut </span>vec = Vec::&lt;String&gt;::new();
<span class="kw">if </span>!<span class="self">self</span>.<span class="number">0</span>.is_null() {
<span class="kw">let </span><span class="kw-2">mut </span>idx_ptr = <span class="number">0</span>;
<span class="kw">loop </span>{
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/shell/funcs.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let raw_data: Vec&lt;u8&gt;; // initialized somewhere
/// # let raw_data = Vec::&lt;u8&gt;::default();
/// # let raw_data = Vec::&lt;u8&gt;::new();
///
/// let stream = w::SHCreateMemStream(&amp;raw_data)?;
/// # w::HrResult::Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/winsafe/user/handles/hwnd.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,7 @@
{
<span class="kw">let </span>buf_sz = sz_item_text.unwrap_or(<span class="number">100</span>) + <span class="number">1</span>;
<span class="kw">let </span><span class="kw-2">mut </span>buf = <span class="kw">match </span>item {
<span class="prelude-val">None </span>=&gt; WString::default(),
<span class="prelude-val">None </span>=&gt; WString::new(),
<span class="prelude-val">Some</span>(<span class="kw">_</span>) =&gt; WString::new_alloc_buf(buf_sz <span class="kw">as _</span>), <span class="comment">// room for terminating null
</span>};

Expand Down

0 comments on commit ac8047d

Please sign in to comment.