<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Defines big-endian serialization."><title>BigEndian in byteorder - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../static.files/rustdoc-47e7ab555ef2818a.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="byteorder"data-themes=""data-resource-suffix=""data-rustdoc-version="1.74.0-nightly (d9c8274fb 2023-09-12)"data-channel="nightly"data-search-js="search-5d3eaacf19ebf04f.js"data-settings-js="settings-74424d7eec62a23e.js"data-settings-css="settings-8c76f75bfb6bd192.css"data-theme-light-css="light-f194925aa375ae96.css"data-theme-dark-css="dark-1dd4d1ce031e15de.css"data-theme-ayu-css="ayu-49e58d069f567085.css"><scriptsrc="../static.files/storage-db41da1a38ea3cb8.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../static.files/main-8d035c8cea6edbc4.js"></script><noscript><linkrel="stylesheet"media="(prefers-color-scheme:light)"href="../static.files/light-f194925aa375ae96.css"><linkrel="stylesheet"media="(prefers-color-scheme:dark)"href="../static.files/dark-1dd4d1ce031e15de.css"><linkrel="stylesheet"href="../static.files/noscript-cffde32267a19fd6.css"></noscript><linkrel="alternate icon"type="image/png"href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><linkrel="alternate icon"type="image/png"href="../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../static.files/favicon-2c020d218678b618.svg"></head><bodyclass="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="logo-container"href="../byteorder/index.html"><imgclass="rust-logo"src="../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2></h2></nav><navclass="sidebar"><aclass="logo-container"href="../byteorder/index.html"><imgclass="rust-logo"src="../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2class="location"><ahref="#">BigEndian</a></h2><divclass="sidebar-elems"><section><h3><ahref="#trait-implementations">Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-ByteOrder-for-BigEndian">ByteOrder</a></li><li><ahref="#impl-Clone-for-BigEndian">Clone</a></li><li><ahref="#impl-Copy-for-BigEndian">Copy</a></li><li><ahref="#impl-Debug-for-BigEndian">Debug</a></li><li><ahref="#impl-Default-for-BigEndian">Default</a></li><li><ahref="#impl-Eq-for-BigEndian">Eq</a></li><li><ahref="#impl-Hash-for-BigEndian">Hash</a></li><li><ahref="#impl-Ord-for-BigEndian">Ord</a></li><li><ahref="#impl-PartialEq%3CBigEndian%3E-for-BigEndian">PartialEq<BigEndian></a></li><li><ahref="#impl-PartialOrd%3CBigEndian%3E-for-BigEndian">PartialOrd<BigEndian></a></li><li><ahref="#impl-StructuralEq-for-BigEndian">StructuralEq</a></li><li><ahref="#impl-StructuralPartialEq-for-BigEndian">StructuralPartialEq</a></li></ul><h3><ahref="#synthetic-implementations">Auto
</div></details><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-ByteOrder-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1970-2184">source</a><ahref="#impl-ByteOrder-for-BigEndian"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="trait.ByteOrder.html"title="trait byteorder::ByteOrder">ByteOrder</a> for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u16"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1972-1974">source</a><ahref="#method.read_u16"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_u16"class="fn">read_u16</a>(buf: &[u8]) -> u16</h4></section></summary><divclass='docblock'>Reads an unsigned 16 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_u16">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u32"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1977-1979">source</a><ahref="#method.read_u32"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_u32"class="fn">read_u32</a>(buf: &[u8]) -> u32</h4></section></summary><divclass='docblock'>Reads an unsigned 32 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_u32">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u64"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1982-1984">source</a><ahref="#method.read_u64"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_u64"class="fn">read_u64</a>(buf: &[u8]) -> u64</h4></section></summary><divclass='docblock'>Reads an unsigned 64 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_u64">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u128"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1987-1989">source</a><ahref="#method.read_u128"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_u128"class="fn">read_u128</a>(buf: &[u8]) -> u128</h4></section></summary><divclass='docblock'>Reads an unsigned 128 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_u128">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_uint"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1992-2004">source</a><ahref="#method.read_uint"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_uint"class="fn">read_uint</a>(buf: &[u8], nbytes: usize) -> u64</h4></section></summary><divclass='docblock'>Reads an unsigned n-bytes integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_uint">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_uint128"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2007-2019">source</a><ahref="#method.read_uint128"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.read_uint128"class="fn">read_uint128</a>(buf: &[u8], nbytes: usize) -> u128</h4></section></summary><divclass='docblock'>Reads an unsigned n-bytes integer from <code>buf</code>. <ahref="trait.ByteOrder.html#tymethod.read_uint128">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sect
endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_u16">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_u32"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2135-2141">source</a><ahref="#method.from_slice_u32"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.from_slice_u32"class="fn">from_slice_u32</a>(numbers: &mut [u32])</h4></section></summary><divclass='docblock'>Converts the given slice of unsigned 32 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_u32">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_u64"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2144-2150">source</a><ahref="#method.from_slice_u64"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.from_slice_u64"class="fn">from_slice_u64</a>(numbers: &mut [u64])</h4></section></summary><divclass='docblock'>Converts the given slice of unsigned 64 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_u64">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_u128"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2153-2159">source</a><ahref="#method.from_slice_u128"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.from_slice_u128"class="fn">from_slice_u128</a>(numbers: &mut [u128])</h4></section></summary><divclass='docblock'>Converts the given slice of unsigned 128 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_u128">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_f32"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2162-2171">source</a><ahref="#method.from_slice_f32"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.from_slice_f32"class="fn">from_slice_f32</a>(numbers: &mut [f32])</h4></section></summary><divclass='docblock'>Converts the given slice of IEEE754 single-precision (4 bytes) floating
point numbers to a particular endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_f32">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_f64"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#2174-2183">source</a><ahref="#method.from_slice_f64"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#tymethod.from_slice_f64"class="fn">from_slice_f64</a>(numbers: &mut [f64])</h4></section></summary><divclass='docblock'>Converts the given slice of IEEE754 double-precision (8 bytes) floating
point numbers to a particular endianness. <ahref="trait.ByteOrder.html#tymethod.from_slice_f64">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u24"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#244-246">source</a><ahref="#method.read_u24"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_u24"class="fn">read_u24</a>(buf: &[u8]) -> u32</h4></section></summary><divclass='docblock'>Reads an unsigned 24 bit integer from <code>buf</code>, stored in u32. <ahref="trait.ByteOrder.html#method.read_u24">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_u48"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#284-286">source</a><ahref="#method.read_u48"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_u48"class="fn">read_u48</a>(buf: &[u8]) -> u64</h4></section></summary><divclass='docblock'>Reads an unsigned 48 bit integer from <code>buf</code>, stored in u64. <ahref="trait.ByteOrder.html#method.read_u48">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_u24"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#402-404">source</a><ahref="#method.write_u24"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_u24"class="fn">write_u24</a>(buf: &mut [u8], n: u32)</h4></section></summary><divclass='docblock'>Writes an unsigned 24 bit integer <code>n</code> to <code>buf</code>, stored in u32. <ahref="trait.ByteOrder.html#method.write_u24">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_u48"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#442-444">source</a><ahref="#method.write_u48"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_u48"class="fn">write_u48</a>(buf: &mut [u8], n: u64)</h4></section></summary><divclass='docblock'>Writes an unsigned 48 bit integer <code>n</code> to <code>buf</code>, stored in u64. <ahref="trait.ByteOrder.html#method.write_u48">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_i16"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#542-544">source</a><ahref="#method.read_i16"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_i16"class="fn">read_i16</a>(buf: &[u8]) -> i16</h4></section></summary><divclass='docblock'>Reads a signed 16 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#method.read_i16">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_i24"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#564-566">source</a><ahref="#method.read_i24"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_i24"class="fn">read_i24</a>(buf: &[u8]) -> i32</h4></section></summary><divclass='docblock'>Reads a signed 24 bit integer from <code>buf</code>, stored in i32. <ahref="trait.ByteOrder.html#method.read_i24">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_i32"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#586-588">source</a><ahref="#method.read_i32"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_i32"class="fn">read_i32</a>(buf: &[u8]) -> i32</h4></section></summary><divclass='docblock'>Reads a signed 32 bit integer from <code>buf</code>. <ahref="trait.ByteOrder.html#method.read_i32">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_i48"class="methodtrait-
<code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.read_f32_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_f32_into_unchecked"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1237-1239">source</a><ahref="#method.read_f32_into_unchecked"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_f32_into_unchecked"class="fn">read_f32_into_unchecked</a>(src: &[u8], dst: &mut [f32])</h4></section></summary><spanclass="item-info"><divclass="stab deprecated"><spanclass="emoji">👎</span><span>Deprecated since 1.3.0: please use <code>read_f32_into</code> instead</span></div></span><divclass='docblock'><strong>DEPRECATED</strong>. <ahref="trait.ByteOrder.html#method.read_f32_into_unchecked">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_f64_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1264-1269">source</a><ahref="#method.read_f64_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_f64_into"class="fn">read_f64_into</a>(src: &[u8], dst: &mut [f64])</h4></section></summary><divclass='docblock'>Reads IEEE754 single-precision (4 bytes) floating point numbers from
<code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.read_f64_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.read_f64_into_unchecked"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1299-1301">source</a><ahref="#method.read_f64_into_unchecked"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.read_f64_into_unchecked"class="fn">read_f64_into_unchecked</a>(src: &[u8], dst: &mut [f64])</h4></section></summary><spanclass="item-info"><divclass="stab deprecated"><spanclass="emoji">👎</span><span>Deprecated since 1.3.0: please use <code>read_f64_into</code> instead</span></div></span><divclass='docblock'><strong>DEPRECATED</strong>. <ahref="trait.ByteOrder.html#method.read_f64_into_unchecked">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_i8_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1422-1427">source</a><ahref="#method.write_i8_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_i8_into"class="fn">write_i8_into</a>(src: &[i8], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes signed 8 bit integers from <code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_i8_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_i16_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1450-1455">source</a><ahref="#method.write_i16_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_i16_into"class="fn">write_i16_into</a>(src: &[i16], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes signed 16 bit integers from <code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_i16_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_i32_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1478-1483">source</a><ahref="#method.write_i32_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_i32_into"class="fn">write_i32_into</a>(src: &[i32], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes signed 32 bit integers from <code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_i32_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_i64_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1506-1511">source</a><ahref="#method.write_i64_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_i64_into"class="fn">write_i64_into</a>(src: &[i64], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes signed 64 bit integers from <code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_i64_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_i128_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1534-1539">source</a><ahref="#method.write_i128_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_i128_into"class="fn">write_i128_into</a>(src: &[i128], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes signed 128 bit integers from <code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_i128_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_f32_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1563-1568">source</a><ahref
<code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_f32_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_f64_into"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1592-1597">source</a><ahref="#method.write_f64_into"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.write_f64_into"class="fn">write_f64_into</a>(src: &[f64], dst: &mut [u8])</h4></section></summary><divclass='docblock'>Writes IEEE754 double-precision (8 bytes) floating point numbers from
<code>src</code> into <code>dst</code>. <ahref="trait.ByteOrder.html#method.write_f64_into">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_i16"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1693-1698">source</a><ahref="#method.from_slice_i16"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.from_slice_i16"class="fn">from_slice_i16</a>(src: &mut [i16])</h4></section></summary><divclass='docblock'>Converts the given slice of signed 16 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#method.from_slice_i16">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_i32"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1718-1723">source</a><ahref="#method.from_slice_i32"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.from_slice_i32"class="fn">from_slice_i32</a>(src: &mut [i32])</h4></section></summary><divclass='docblock'>Converts the given slice of signed 32 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#method.from_slice_i32">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_i64"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1743-1748">source</a><ahref="#method.from_slice_i64"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.from_slice_i64"class="fn">from_slice_i64</a>(src: &mut [i64])</h4></section></summary><divclass='docblock'>Converts the given slice of signed 64 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#method.from_slice_i64">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_slice_i128"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1768-1773">source</a><ahref="#method.from_slice_i128"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ByteOrder.html#method.from_slice_i128"class="fn">from_slice_i128</a>(src: &mut [i128])</h4></section></summary><divclass='docblock'>Converts the given slice of signed 128 bit integers to a particular
endianness. <ahref="trait.ByteOrder.html#method.from_slice_i128">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Clone-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Clone for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.clone"class="anchor">§</a><h4class="code-header">fn <aclass="fn">clone</a>(&self) -><aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h4></section></summary><divclass='docblock'>Returns a copy of the value. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.clone_from"class="anchor">§</a><h4class="code-header">fn <aclass="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><divclass='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Debug-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Debug for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Default-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1809-1813">source</a><ahref="#impl-Default-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Default for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.default"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1810-1812">source</a><ahref="#method.default"class="anchor">§</a><h4class="code-header">fn <aclass="fn">default</a>() -><aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h4></section></summary><divclass='docblock'>Returns the “default value” for a type. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Hash-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Hash-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Hash for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.hash"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.hash"class="anchor">§</a><h4class="code-header">fn <aclass="fn">hash</a><__H: Hasher>(&self, state: &mut __H)</h4></
H: Hasher,
Self: Sized,</span></h4></section></summary><divclass='docblock'>Feeds a slice of this type into the given [<code>Hasher</code>]. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Ord-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Ord-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Ord for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.cmp"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.cmp"class="anchor">§</a><h4class="code-header">fn <aclass="fn">cmp</a>(&self, other: &<aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a>) -> Ordering</h4></section></summary><divclass='docblock'>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.max"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.21.0">1.21.0</span><ahref="#method.max"class="anchor">§</a><h4class="code-header">fn <aclass="fn">max</a>(self, other: Self) -> Self<spanclass="where fmt-newline">where
Self: Sized,</span></h4></section></summary><divclass='docblock'>Compares and returns the maximum of two values. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.min"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.21.0">1.21.0</span><ahref="#method.min"class="anchor">§</a><h4class="code-header">fn <aclass="fn">min</a>(self, other: Self) -> Self<spanclass="where fmt-newline">where
Self: Sized,</span></h4></section></summary><divclass='docblock'>Compares and returns the minimum of two values. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clamp"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.50.0">1.50.0</span><ahref="#method.clamp"class="anchor">§</a><h4class="code-header">fn <aclass="fn">clamp</a>(self, min: Self, max: Self) -> Self<spanclass="where fmt-newline">where
Self: Sized + PartialOrd<Self>,</span></h4></section></summary><divclass='docblock'>Restrict a value to a certain interval. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-PartialEq%3CBigEndian%3E-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-PartialEq%3CBigEndian%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl PartialEq<<aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a>> for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.eq"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.eq"class="anchor">§</a><h4class="code-header">fn <aclass="fn">eq</a>(&self, other: &<aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a>) -> bool</h4></section></summary><divclass='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ne"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.ne"class="anchor">§</a><h4class="code-header">fn <aclass="fn">ne</a>(&self, other: &Rhs) -> bool</h4></section></summary><divclass='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-PartialOrd%3CBigEndian%3E-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-PartialOrd%3CBigEndian%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl PartialOrd<<aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a>> for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.partial_cmp"class="method trait-impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#method.partial_cmp"class="anchor">§</a><h4class="code-header">fn <aclass="fn">partial_cmp</a>(&self, other: &<aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a>) -> Option<Ordering></h4></section></summary><divclass='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.lt"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.lt"class="anchor">§</a><h4class="code-header">fn <aclass="fn">lt</a>(&self, other: &Rhs) -> bool</h4></section></summary><divclass='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.le"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.le"class="anchor">§</a><h4class="code-header">fn <aclass="fn">le</a>(&self, other: &Rhs) -> bool</h4></section></summary><divclass='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code>
operator. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.gt"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.gt"class="anchor">§</a><h4class="code-header">fn <aclass="fn">gt</a>(&self, other: &Rhs) -> bool</h4></section></summary><divclass='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ge"class="method trait-impl"><spanclass="since rightside"title="Stable since Rust version 1.0.0">1.0.0</span><ahref="#method.ge"class="anchor">§</a><h4class="code-header">fn <aclass="fn">ge</a>(&self, other: &Rhs) -> bool</h4></section></summary><divclass='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code>
operator. <a>Read more</a></div></details></div></details><sectionid="impl-Copy-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Copy-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Copy for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-Eq-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-Eq-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Eq for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-StructuralEq-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-StructuralEq-for-BigEndian"class="anchor">§</a><h3class="code-header">impl StructuralEq for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-StructuralPartialEq-for-BigEndian"class="impl"><aclass="src rightside"href="../src/byteorder/lib.rs.html#1806">source</a><ahref="#impl-StructuralPartialEq-for-BigEndian"class="anchor">§</a><h3class="code-header">impl StructuralPartialEq for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-RefUnwindSafe-for-BigEndian"class="impl"><ahref="#impl-RefUnwindSafe-for-BigEndian"class="anchor">§</a><h3class="code-header">impl RefUnwindSafe for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-Send-for-BigEndian"class="impl"><ahref="#impl-Send-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Send for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-Sync-for-BigEndian"class="impl"><ahref="#impl-Sync-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Sync for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-Unpin-for-BigEndian"class="impl"><ahref="#impl-Unpin-for-BigEndian"class="anchor">§</a><h3class="code-header">impl Unpin for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section><sectionid="impl-UnwindSafe-for-BigEndian"class="impl"><ahref="#impl-UnwindSafe-for-BigEndian"class="anchor">§</a><h3class="code-header">impl UnwindSafe for <aclass="enum"href="enum.BigEndian.html"title="enum byteorder::BigEndian">BigEndian</a></h3></section></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-BigEndian"class="impl"><ahref="#impl-Any-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T> Any for T<spanclass="where fmt-newline">where
T: 'static + ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <aclass="fn">type_id</a>(&self) -> TypeId</h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-BigEndian"class="impl"><ahref="#impl-Borrow%3CT%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T> Borrow<T> for T<spanclass="where fmt-newline">where
T: ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <aclass="fn">borrow</a>(&self) ->&T</h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-BigEndian"class="impl"><ahref="#impl-BorrowMut%3CT%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T> BorrowMut<T> for T<spanclass="where fmt-newline">where
T: ?Sized,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <aclass="fn">borrow_mut</a>(&mut self) ->&mut T</h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-BigEndian"class="impl"><ahref="#impl-From%3CT%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T> From<T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <aclass="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-BigEndian"class="impl"><ahref="#impl-Into%3CU%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T, U> Into<U> for T<spanclass="where fmt-newline">where
U: Into<T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Error</a> = Infallible</h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-BigEndian"class="impl"><ahref="#impl-TryInto%3CU%3E-for-BigEndian"class="anchor">§</a><h3class="code-header">impl<T, U> TryInto<U> for T<spanclass="where fmt-newline">where
U: TryFrom<T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>