blob: 57ae583bd7e87f5eb96b35a63ea78a565112b5db [file] [log] [blame]
<!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="FixedInt provides encoding/decoding to and from fixed int representations. The emitted bytestring contains the bytes of the integer in machine endianness."><meta name="keywords" content="rust, rustlang, rust-lang, FixedInt"><title>FixedInt in integer_encoding - 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" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" 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 trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../integer_encoding/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../integer_encoding/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">FixedInt</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.REQUIRED_SPACE">REQUIRED_SPACE</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.decode_fixed">decode_fixed</a></li><li><a href="#tymethod.encode_fixed">encode_fixed</a></li><li><a href="#tymethod.encode_fixed_light">encode_fixed_light</a></li><li><a href="#tymethod.required_space">required_space</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.decode_fixed_vec">decode_fixed_vec</a></li><li><a href="#method.encode_fixed_vec">encode_fixed_vec</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-FixedInt-for-i16">i16</a></li><li><a href="#impl-FixedInt-for-i32">i32</a></li><li><a href="#impl-FixedInt-for-i64">i64</a></li><li><a href="#impl-FixedInt-for-isize">isize</a></li><li><a href="#impl-FixedInt-for-u16">u16</a></li><li><a href="#impl-FixedInt-for-u32">u32</a></li><li><a href="#impl-FixedInt-for-u64">u64</a></li><li><a href="#impl-FixedInt-for-usize">usize</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In integer_encoding</a></h2></div></nav><main><div class="width-limiter"><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"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><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><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="index.html">integer_encoding</a>::<wbr><a class="trait" href="#">FixedInt</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></h1><span class="out-of-band"><a class="srclink" href="../src/integer_encoding/fixed.rs.html#5-29">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait FixedInt: Sized + Copy {
const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize;
fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize;
<span class="item-spacer"></span> fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, src: &amp;mut [u8]);
<span class="item-spacer"></span> fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8];
fn <a href="#method.encode_fixed_vec" class="fnname">encode_fixed_vec</a>(self) -&gt; Vec&lt;u8&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.decode_fixed_vec" class="fnname">decode_fixed_vec</a>(v: &amp;Vec&lt;u8&gt;) -&gt; Self { ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>FixedInt provides encoding/decoding to and from fixed int representations.
The emitted bytestring contains the bytes of the integer in machine endianness.</p>
</div></details><h2 id="required-associated-consts" class="small-section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor"></a></h2><div class="methods"><section id="associatedconstant.REQUIRED_SPACE" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#6">source</a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize</h4></section></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.required_space" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#8">source</a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section></summary><div class="docblock"><p>Returns how many bytes are required to represent the given type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.encode_fixed" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#10">source</a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, src: &amp;mut [u8])</h4></section></summary><div class="docblock"><p>Encode a value into the given slice. <code>dst</code> must be exactly <code>REQUIRED_SPACE</code> bytes.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.decode_fixed" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#12">source</a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; Self</h4></section></summary><div class="docblock"><p>Decode a value from the given slice. <code>src</code> must be exactly <code>REQUIRED_SPACE</code> bytes.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.encode_fixed_light" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#15">source</a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section></summary><div class="docblock"><p>Perform a transmute, i.e. return a “view” into the integer’s memory, which is faster than
performing a copy.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.encode_fixed_vec" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#18-23">source</a><h4 class="code-header">fn <a href="#method.encode_fixed_vec" class="fnname">encode_fixed_vec</a>(self) -&gt; Vec&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Helper: Encode the value and return a Vec.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.decode_fixed_vec" class="method has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#25-28">source</a><h4 class="code-header">fn <a href="#method.decode_fixed_vec" class="fnname">decode_fixed_vec</a>(v: &amp;Vec&lt;u8&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Helper: Decode the value from the Vec.</p>
</div></details></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-FixedInt-for-usize" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#impl-FixedInt-for-usize" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for usize</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-1" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#associatedconstant.REQUIRED_SPACE-1" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 8usize</h4></section><section id="method.required_space" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#method.required_space" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#method.encode_fixed_light" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#method.encode_fixed" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#62">source</a><a href="#method.decode_fixed" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-u64" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#impl-FixedInt-for-u64" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for u64</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-2" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#associatedconstant.REQUIRED_SPACE-2" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 8usize</h4></section><section id="method.required_space-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#method.required_space-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#method.encode_fixed_light-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#method.encode_fixed-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#63">source</a><a href="#method.decode_fixed-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; u64</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-u32" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#impl-FixedInt-for-u32" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for u32</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-3" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#associatedconstant.REQUIRED_SPACE-3" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 4usize</h4></section><section id="method.required_space-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#method.required_space-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#method.encode_fixed_light-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#method.encode_fixed-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#64">source</a><a href="#method.decode_fixed-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; u32</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-u16" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#impl-FixedInt-for-u16" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for u16</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-4" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#associatedconstant.REQUIRED_SPACE-4" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 2usize</h4></section><section id="method.required_space-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#method.required_space-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#method.encode_fixed_light-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#method.encode_fixed-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#65">source</a><a href="#method.decode_fixed-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; u16</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-isize" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#impl-FixedInt-for-isize" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for isize</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-5" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#associatedconstant.REQUIRED_SPACE-5" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 8usize</h4></section><section id="method.required_space-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#method.required_space-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#method.encode_fixed_light-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#method.encode_fixed-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#66">source</a><a href="#method.decode_fixed-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; isize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-i64" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#impl-FixedInt-for-i64" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for i64</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-6" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#associatedconstant.REQUIRED_SPACE-6" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 8usize</h4></section><section id="method.required_space-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#method.required_space-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#method.encode_fixed_light-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#method.encode_fixed-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#67">source</a><a href="#method.decode_fixed-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; i64</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-i32" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#impl-FixedInt-for-i32" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for i32</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-7" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#associatedconstant.REQUIRED_SPACE-7" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 4usize</h4></section><section id="method.required_space-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#method.required_space-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#method.encode_fixed_light-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#method.encode_fixed-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#68">source</a><a href="#method.decode_fixed-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; i32</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FixedInt-for-i16" class="impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#impl-FixedInt-for-i16" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.FixedInt.html" title="trait integer_encoding::FixedInt">FixedInt</a> for i16</h3></section></summary><div class="impl-items"><section id="associatedconstant.REQUIRED_SPACE-8" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#associatedconstant.REQUIRED_SPACE-8" class="anchor"></a><h4 class="code-header">const <a href="#associatedconstant.REQUIRED_SPACE" class="constant">REQUIRED_SPACE</a>: usize = 2usize</h4></section><section id="method.required_space-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#method.required_space-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.required_space" class="fnname">required_space</a>() -&gt; usize</h4></section><section id="method.encode_fixed_light-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#method.encode_fixed_light-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed_light" class="fnname">encode_fixed_light</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a [u8]</h4></section><section id="method.encode_fixed-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#method.encode_fixed-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encode_fixed" class="fnname">encode_fixed</a>(self, dst: &amp;mut [u8])</h4></section><section id="method.decode_fixed-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/integer_encoding/fixed.rs.html#69">source</a><a href="#method.decode_fixed-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.decode_fixed" class="fnname">decode_fixed</a>(src: &amp;[u8]) -&gt; i16</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"></div><script src="../implementors/integer_encoding/fixed/trait.FixedInt.js" data-ignore-extern-crates="core" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="integer_encoding" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>