Skip to content

Commit

Permalink
(automated) deploy from commit 272fc86
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tiny-kirin committed Jul 31, 2024
1 parent c3e49b2 commit de43839
Show file tree
Hide file tree
Showing 56 changed files with 243 additions and 1,097 deletions.
2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/wiwi/wiwi-desc-0-.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/wiwi/serialiser_binary/array.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@

</span><span class="kw">use </span><span class="kw">crate</span>::defer::OnDrop;
<span class="kw">use </span><span class="kw">super</span>::internal_prelude::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">super</span>::USizeSerialiser;
<span class="kw">use </span><span class="kw">super</span>::NumberSerialiserUnsigned;
<span class="kw">use </span>std::mem::MaybeUninit;
<span class="kw">use </span>std::ptr;

Expand Down Expand Up @@ -237,13 +237,13 @@
inner: Vec&lt;T::Serialiser&lt;<span class="lifetime">'h</span>&gt;&gt;,
<span class="doccomment">/// If `inner.len() &gt; u8::MAX`, this will be `Some`, containing
/// the [`USizeSerialiser`] whose job is to serialise the length
</span>len_ser: <span class="prelude-ty">Option</span>&lt;USizeSerialiser&gt;
</span>len_ser: <span class="prelude-ty">Option</span>&lt;&lt;usize <span class="kw">as </span>Serialise&gt;::Serialiser&lt;<span class="lifetime">'h</span>&gt;&gt;
}

<span class="kw">impl</span>&lt;<span class="lifetime">'h</span>, T: Serialise&gt; SliceSerialiser&lt;<span class="lifetime">'h</span>, T&gt; {
<span class="kw">fn </span>new(slice: <span class="kw-2">&amp;</span><span class="lifetime">'h </span>[T]) -&gt; <span class="self">Self </span>{
<span class="kw">let </span>len_ser = <span class="kw">if </span>slice.len() &gt; u8::MAX.into_usize() {
<span class="prelude-val">Some</span>(USizeSerialiser::new(slice.len()))
<span class="prelude-val">Some</span>(NumberSerialiserUnsigned::new(slice.len()))
} <span class="kw">else </span>{
<span class="prelude-val">None
</span>};
Expand Down
6 changes: 3 additions & 3 deletions src/wiwi/serialiser_binary/binary.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<a href="#119" id="119">119</a>
<a href="#120" id="120">120</a>
</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::internal_prelude::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">super</span>::USizeSerialiser;
<span class="kw">use </span><span class="kw">super</span>::NumberSerialiserUnsigned;
<span class="kw">use </span>std::ops::Deref;

<span class="kw">pub enum </span>Binary&lt;<span class="lifetime">'h</span>&gt; {
Expand Down Expand Up @@ -164,13 +164,13 @@

<span class="kw">pub struct </span>BinarySerialiser&lt;<span class="lifetime">'h</span>&gt; {
slice: <span class="kw-2">&amp;</span><span class="lifetime">'h </span>[u8],
len_ser: <span class="prelude-ty">Option</span>&lt;USizeSerialiser&gt;
len_ser: <span class="prelude-ty">Option</span>&lt;&lt;usize <span class="kw">as </span>Serialise&gt;::Serialiser&lt;<span class="lifetime">'h</span>&gt;&gt;
}

<span class="kw">impl</span>&lt;<span class="lifetime">'h</span>&gt; BinarySerialiser&lt;<span class="lifetime">'h</span>&gt; {
<span class="kw">pub</span>(<span class="kw">super</span>) <span class="kw">fn </span>new(slice: <span class="kw-2">&amp;</span><span class="lifetime">'h </span>[u8]) -&gt; <span class="self">Self </span>{
<span class="kw">let </span>len_ser = <span class="kw">if </span>slice.len() &gt; u8::MAX.into_usize() {
<span class="prelude-val">Some</span>(USizeSerialiser::new(slice.len()))
<span class="prelude-val">Some</span>(NumberSerialiserUnsigned::new(slice.len()))
} <span class="kw">else </span>{
<span class="prelude-val">None
</span>};
Expand Down
6 changes: 3 additions & 3 deletions src/wiwi/serialiser_binary/map.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<a href="#232" id="232">232</a>
<a href="#233" id="233">233</a>
</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::internal_prelude::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">super</span>::USizeSerialiser;
<span class="kw">use </span><span class="kw">super</span>::NumberSerialiserUnsigned;
<span class="attr">#[cfg(feature = <span class="string">"hashbrown"</span>)]
</span><span class="kw">use </span>hashbrown::HashMap <span class="kw">as </span>HashbrownHashMap;
<span class="kw">use </span>std::collections::{ BTreeMap, HashMap <span class="kw">as </span>StdHashMap };
Expand Down Expand Up @@ -281,7 +281,7 @@

<span class="kw">pub struct </span>MapSerialiser&lt;<span class="lifetime">'h</span>, K: Serialise + <span class="lifetime">'h</span>, V: Serialise + <span class="lifetime">'h</span>&gt; {
kv: Vec&lt;(K::Serialiser&lt;<span class="lifetime">'h</span>&gt;, V::Serialiser&lt;<span class="lifetime">'h</span>&gt;)&gt;,
len_ser: <span class="prelude-ty">Option</span>&lt;USizeSerialiser&gt;
len_ser: <span class="prelude-ty">Option</span>&lt;&lt;usize <span class="kw">as </span>Serialise&gt;::Serialiser&lt;<span class="lifetime">'h</span>&gt;&gt;
}

<span class="kw">impl</span>&lt;<span class="lifetime">'h</span>, K, V&gt; MapSerialiser&lt;<span class="lifetime">'h</span>, K, V&gt;
Expand All @@ -295,7 +295,7 @@
.collect::&lt;Vec&lt;<span class="kw">_</span>&gt;&gt;();

<span class="kw">let </span>len_ser = <span class="kw">if </span>kv.len() &gt; u8::MAX.into_usize() {
<span class="prelude-val">Some</span>(USizeSerialiser::new(kv.len()))
<span class="prelude-val">Some</span>(NumberSerialiserUnsigned::new(kv.len()))
} <span class="kw">else </span>{
<span class="prelude-val">None
</span>};
Expand Down
24 changes: 3 additions & 21 deletions src/wiwi/serialiser_binary/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,6 @@
<a href="#592" id="592">592</a>
<a href="#593" id="593">593</a>
<a href="#594" id="594">594</a>
<a href="#595" id="595">595</a>
<a href="#596" id="596">596</a>
<a href="#597" id="597">597</a>
<a href="#598" id="598">598</a>
<a href="#599" id="599">599</a>
<a href="#600" id="600">600</a>
<a href="#601" id="601">601</a>
<a href="#602" id="602">602</a>
<a href="#603" id="603">603</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::{ ptr, slice };
<span class="kw">use </span>std::marker::PhantomData;

Expand Down Expand Up @@ -635,19 +626,10 @@
<span class="kw">pub use </span><span class="self">self</span>::option::OptionSerialiser;
<span class="kw">pub use </span><span class="self">self</span>::number::{
U8Serialiser,
U16Serialiser,
U32Serialiser,
U64Serialiser,
U128Serialiser,
USizeSerialiser,
I8Serialiser,
I16Serialiser,
I32Serialiser,
I64Serialiser,
I128Serialiser,
ISizeSerialiser,
F32Serialiser,
F64Serialiser
NumberSerialiserSigned,
NumberSerialiserUnsigned,
NumberSerialiserFloat
};
<span class="kw">pub use </span>single_type_array::{
SingleTypeArray,
Expand Down
Loading

0 comments on commit de43839

Please sign in to comment.