mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: 3fd8b8e94d
This commit is contained in:
parent
5b1b45bbf9
commit
2b326cbaf1
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Module address</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#types">Type Definitions</a></li></ul></div></section><div id="sidebar-vars" data-name="address" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a class="mod" href="#">address</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#1-263">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Implementation of physical and virtual address and page number.</p>
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a class="mod" href="#">address</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#1-267">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Implementation of physical and virtual address and page number.</p>
|
||||
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PhysAddr.html" title="os::mm::address::PhysAddr struct">PhysAddr</a></div><div class="item-right docblock-short"><p>physical address</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PhysPageNum.html" title="os::mm::address::PhysPageNum struct">PhysPageNum</a></div><div class="item-right docblock-short"><p>physical page number</p>
|
||||
|
@ -5,17 +5,17 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">PhysAddr</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.aligned">aligned</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.get_mut">get_mut</a></li><li><a href="#method.page_offset">page_offset</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CPhysAddr%3E">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysAddr%3E-1">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysPageNum%3E">From<PhysPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CPhysAddr%3E">PartialEq<PhysAddr></a></li><li><a href="#impl-PartialOrd%3CPhysAddr%3E">PartialOrd<PhysAddr></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="PhysAddr" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="struct" href="#">PhysAddr</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#13">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PhysAddr(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>physical address</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#121-138">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#123-125">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#127-129">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#131-133">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#135-137">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#164-169">source</a></span><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#166-168">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"><p>Get mutable reference to <code>PhysAddr</code> value </p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#125-142">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#127-129">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#131-133">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#135-137">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#139-141">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#168-173">source</a></span><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#170-172">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"><p>Get mutable reference to <code>PhysAddr</code> value </p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#12">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#12">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#36-40">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#37-39">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#71-75">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#72-74">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#139-144">source</a></span><a href="#impl-From%3CPhysAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#140-143">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#145-149">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#146-148">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#143-148">source</a></span><a href="#impl-From%3CPhysAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#144-147">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#149-153">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#150-152">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#51-55">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="docblock"><p>T: {PhysAddr, VirtAddr, PhysPageNum, VirtPageNum}
|
||||
T -> usize: T.0
|
||||
usize -> T: usize.into()</p>
|
||||
|
@ -5,13 +5,13 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">PhysPageNum</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.get_bytes_array">get_bytes_array</a></li><li><a href="#method.get_mut">get_mut</a></li><li><a href="#method.get_pte_array">get_pte_array</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CPhysAddr%3E">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysPageNum%3E">From<PhysPageNum></a></li><li><a href="#impl-From%3CPhysPageNum%3E-1">From<PhysPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CPhysPageNum%3E">PartialEq<PhysPageNum></a></li><li><a href="#impl-PartialOrd%3CPhysPageNum%3E">PartialOrd<PhysPageNum></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="PhysPageNum" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="struct" href="#">PhysPageNum</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#19">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PhysPageNum(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>physical page number</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#170-186">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pte_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#172-175">source</a></span><a href="#method.get_pte_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_pte_array" class="fnname">get_pte_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="struct" href="../page_table/struct.PageTableEntry.html" title="struct os::mm::page_table::PageTableEntry">PageTableEntry</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"><p>Get <code>PageTableEntry</code> on <code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_bytes_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#177-180">source</a></span><a href="#method.get_bytes_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_bytes_array" class="fnname">get_bytes_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#182-185">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"></div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#174-190">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pte_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#176-179">source</a></span><a href="#method.get_pte_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_pte_array" class="fnname">get_pte_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="struct" href="../page_table/struct.PageTableEntry.html" title="struct os::mm::page_table::PageTableEntry">PageTableEntry</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"><p>Get <code>PageTableEntry</code> on <code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_bytes_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#181-184">source</a></span><a href="#method.get_bytes_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_bytes_array" class="fnname">get_bytes_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#186-189">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"></div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#41-45">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#42-44">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#139-144">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#140-143">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#143-148">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#144-147">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#76-80">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#77-79">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#145-149">source</a></span><a href="#impl-From%3CPhysPageNum%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#146-148">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#149-153">source</a></span><a href="#impl-From%3CPhysPageNum%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#150-152">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#56-60">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#57-59">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -4,12 +4,12 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">SimpleRangeIterator</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.current">current</a></li><li><a href="#structfield.end">end</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new">new</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Iterator">Iterator</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-IntoIterator">IntoIterator</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="SimpleRangeIterator" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="struct" href="#">SimpleRangeIterator</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#232-238">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct SimpleRangeIterator<T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span> {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="struct" href="#">SimpleRangeIterator</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#236-242">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct SimpleRangeIterator<T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span> {
|
||||
current: T,
|
||||
end: T,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>iterator for the simple range structure</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.current" class="structfield small-section-header"><a href="#structfield.current" class="anchor field"></a><code>current: T</code></span><span id="structfield.end" class="structfield small-section-header"><a href="#structfield.end" class="anchor field"></a><code>end: T</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#239-246">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="struct" href="struct.SimpleRangeIterator.html" title="struct os::mm::address::SimpleRangeIterator">SimpleRangeIterator</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#243-245">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(l: T, r: T) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Iterator" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#247-261">source</a></span><a href="#impl-Iterator" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.SimpleRangeIterator.html" title="struct os::mm::address::SimpleRangeIterator">SimpleRangeIterator</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="type trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.next" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#252-260">source</a></span><a href="#method.next" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fnname">next</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'><p>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.current" class="structfield small-section-header"><a href="#structfield.current" class="anchor field"></a><code>current: T</code></span><span id="structfield.end" class="structfield small-section-header"><a href="#structfield.end" class="anchor field"></a><code>end: T</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#243-250">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="struct" href="struct.SimpleRangeIterator.html" title="struct os::mm::address::SimpleRangeIterator">SimpleRangeIterator</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#247-249">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(l: T, r: T) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Iterator" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#251-265">source</a></span><a href="#impl-Iterator" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.SimpleRangeIterator.html" title="struct os::mm::address::SimpleRangeIterator">SimpleRangeIterator</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="type trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.next" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#256-264">source</a></span><a href="#method.next" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fnname">next</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'><p>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.size_hint" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#167">source</a></span><a href="#method.size_hint" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint" class="fnname">size_hint</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">)</a></h4></section></summary><div class='docblock'><p>Returns the bounds on the remaining length of the iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.count" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#204-206">source</a></span><a href="#method.count" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.count" class="fnname">count</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'><p>Consumes the iterator, counting the number of iterations and returning it. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.count">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.last" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#234-236">source</a></span><a href="#method.last" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.last" class="fnname">last</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'><p>Consumes the iterator, returning the last element. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.last">Read more</a></p>
|
||||
|
@ -5,17 +5,17 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">VirtAddr</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.aligned">aligned</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.page_offset">page_offset</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CVirtAddr%3E">From<VirtAddr></a></li><li><a href="#impl-From%3CVirtAddr%3E-1">From<VirtAddr></a></li><li><a href="#impl-From%3CVirtPageNum%3E">From<VirtPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CVirtAddr%3E">PartialEq<VirtAddr></a></li><li><a href="#impl-PartialOrd%3CVirtAddr%3E">PartialOrd<VirtAddr></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="VirtAddr" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="struct" href="#">VirtAddr</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#16">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct VirtAddr(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>virtual address</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#92-109">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"></div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#94-96">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#98-100">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#102-104">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#106-108">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#96-113">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"></div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#98-100">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#102-104">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#106-108">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#110-112">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#26-30">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"><p>Debugging</p>
|
||||
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#27-29">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#81-85">source</a></span><a href="#impl-From%3CVirtAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#82-84">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#110-115">source</a></span><a href="#impl-From%3CVirtAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#111-114">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#116-120">source</a></span><a href="#impl-From%3CVirtPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#117-119">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#81-89">source</a></span><a href="#impl-From%3CVirtAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#82-88">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#114-119">source</a></span><a href="#impl-From%3CVirtAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#115-118">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#120-124">source</a></span><a href="#impl-From%3CVirtPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#121-123">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#61-65">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#62-64">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#15">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#15">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">StepByOne</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.step">step</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="StepByOne" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="trait" href="#">StepByOne</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#188-190">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait StepByOne {
|
||||
<h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="trait" href="#">StepByOne</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#192-194">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait StepByOne {
|
||||
fn <a href="#tymethod.step" class="fnname">step</a>(&mut self);
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.step" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#189">source</a></div><h4 class="code-header">fn <a href="#tymethod.step" class="fnname">step</a>(&mut self)</h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-StepByOne" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#191-195">source</a></span><a href="#impl-StepByOne" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> for <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></div><script type="text/javascript" src="../../../implementors/os/mm/address/trait.StepByOne.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="os" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0-nightly (1f7fb6413 2022-04-10)" ></div>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.step" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#193">source</a></div><h4 class="code-header">fn <a href="#tymethod.step" class="fnname">step</a>(&mut self)</h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-StepByOne" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/os/mm/address.rs.html#195-199">source</a></span><a href="#impl-StepByOne" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StepByOne.html" title="trait os::mm::address::StepByOne">StepByOne</a> for <a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></div><script type="text/javascript" src="../../../implementors/os/mm/address/trait.StepByOne.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="os" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0-nightly (1f7fb6413 2022-04-10)" ></div>
|
||||
</body></html>
|
@ -4,6 +4,6 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">VPNRange</a></h2><div class="sidebar-elems"><h2 class="location"><a href="index.html">In os::mm::address</a></h2><div id="sidebar-vars" data-name="VPNRange" data-ty="type" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../os/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Type Definition <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="type" href="#">VPNRange</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#263">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>pub type VPNRange = <a class="struct" href="struct.SimpleRange.html" title="struct os::mm::address::SimpleRange">SimpleRange</a><<a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>>;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>a simple range structure for virtual page number</p>
|
||||
<h1 class="fqn"><span class="in-band">Type Definition <a href="../../index.html">os</a>::<wbr><a href="../index.html">mm</a>::<wbr><a href="index.html">address</a>::<wbr><a class="type" href="#">VPNRange</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/os/mm/address.rs.html#267">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>pub type VPNRange = <a class="struct" href="struct.SimpleRange.html" title="struct os::mm::address::SimpleRange">SimpleRange</a><<a class="struct" href="struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>>;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>a simple range structure for virtual page number</p>
|
||||
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="os" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0-nightly (1f7fb6413 2022-04-10)" ></div>
|
||||
</body></html>
|
@ -5,17 +5,17 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">PhysAddr</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.aligned">aligned</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.get_mut">get_mut</a></li><li><a href="#method.page_offset">page_offset</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CPhysAddr%3E">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysAddr%3E-1">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysPageNum%3E">From<PhysPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CPhysAddr%3E">PartialEq<PhysAddr></a></li><li><a href="#impl-PartialOrd%3CPhysAddr%3E">PartialOrd<PhysAddr></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm</a></h2><div id="sidebar-vars" data-name="PhysAddr" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../os/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">os</a>::<wbr><a href="index.html">mm</a>::<wbr><a class="struct" href="#">PhysAddr</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></span></h1><span class="out-of-band"><a class="srclink" href="../../src/os/mm/address.rs.html#13">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PhysAddr(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>physical address</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#121-138">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#123-125">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#127-129">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#131-133">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#135-137">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#164-169">source</a></span><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#166-168">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"><p>Get mutable reference to <code>PhysAddr</code> value </p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#125-142">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#127-129">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#131-133">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class="docblock"><p><code>PhysAddr</code>-><code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#135-137">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#139-141">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#168-173">source</a></span><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#170-172">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"><p>Get mutable reference to <code>PhysAddr</code> value </p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#12">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#12">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#36-40">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#37-39">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#71-75">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#72-74">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#139-144">source</a></span><a href="#impl-From%3CPhysAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#140-143">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#145-149">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#146-148">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#143-148">source</a></span><a href="#impl-From%3CPhysAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#144-147">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#149-153">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#150-152">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#51-55">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="docblock"><p>T: {PhysAddr, VirtAddr, PhysPageNum, VirtPageNum}
|
||||
T -> usize: T.0
|
||||
usize -> T: usize.into()</p>
|
||||
|
@ -5,13 +5,13 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">PhysPageNum</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.get_bytes_array">get_bytes_array</a></li><li><a href="#method.get_mut">get_mut</a></li><li><a href="#method.get_pte_array">get_pte_array</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CPhysAddr%3E">From<PhysAddr></a></li><li><a href="#impl-From%3CPhysPageNum%3E">From<PhysPageNum></a></li><li><a href="#impl-From%3CPhysPageNum%3E-1">From<PhysPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CPhysPageNum%3E">PartialEq<PhysPageNum></a></li><li><a href="#impl-PartialOrd%3CPhysPageNum%3E">PartialOrd<PhysPageNum></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm</a></h2><div id="sidebar-vars" data-name="PhysPageNum" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../os/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">os</a>::<wbr><a href="index.html">mm</a>::<wbr><a class="struct" href="#">PhysPageNum</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></span></h1><span class="out-of-band"><a class="srclink" href="../../src/os/mm/address.rs.html#19">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PhysPageNum(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>physical page number</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#170-186">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pte_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#172-175">source</a></span><a href="#method.get_pte_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_pte_array" class="fnname">get_pte_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="struct" href="page_table/struct.PageTableEntry.html" title="struct os::mm::page_table::PageTableEntry">PageTableEntry</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"><p>Get <code>PageTableEntry</code> on <code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_bytes_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#177-180">source</a></span><a href="#method.get_bytes_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_bytes_array" class="fnname">get_bytes_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#182-185">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"></div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#174-190">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pte_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#176-179">source</a></span><a href="#method.get_pte_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_pte_array" class="fnname">get_pte_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="struct" href="page_table/struct.PageTableEntry.html" title="struct os::mm::page_table::PageTableEntry">PageTableEntry</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"><p>Get <code>PageTableEntry</code> on <code>PhysPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_bytes_array" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#181-184">source</a></span><a href="#method.get_bytes_array" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_bytes_array" class="fnname">get_bytes_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">&'static mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.slice.html">]</a></h4></section></summary><div class="docblock"></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#186-189">source</a></span><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&'static mut </a>T</h4></section></summary><div class="docblock"></div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#41-45">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#42-44">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#139-144">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#140-143">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#143-148">source</a></span><a href="#impl-From%3CPhysAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#144-147">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#76-80">source</a></span><a href="#impl-From%3CPhysPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#77-79">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#145-149">source</a></span><a href="#impl-From%3CPhysPageNum%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#146-148">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPhysPageNum%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#149-153">source</a></span><a href="#impl-From%3CPhysPageNum%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>> for <a class="struct" href="address/struct.PhysAddr.html" title="struct os::mm::address::PhysAddr">PhysAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#150-152">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#56-60">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#57-59">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#18">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="address/struct.PhysPageNum.html" title="struct os::mm::address::PhysPageNum">PhysPageNum</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||
|
@ -5,17 +5,17 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../os/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">VirtAddr</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Tuple Fields</a></h3></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.aligned">aligned</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.page_offset">page_offset</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3CVirtAddr%3E">From<VirtAddr></a></li><li><a href="#impl-From%3CVirtAddr%3E-1">From<VirtAddr></a></li><li><a href="#impl-From%3CVirtPageNum%3E">From<VirtPageNum></a></li><li><a href="#impl-From%3Cusize%3E">From<usize></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CVirtAddr%3E">PartialEq<VirtAddr></a></li><li><a href="#impl-PartialOrd%3CVirtAddr%3E">PartialOrd<VirtAddr></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In os::mm</a></h2><div id="sidebar-vars" data-name="VirtAddr" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../os/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">os</a>::<wbr><a href="index.html">mm</a>::<wbr><a class="struct" href="#">VirtAddr</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></span></h1><span class="out-of-band"><a class="srclink" href="../../src/os/mm/address.rs.html#16">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct VirtAddr(pub <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>virtual address</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#92-109">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"></div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#94-96">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#98-100">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#102-104">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#106-108">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Tuple Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.0" class="structfield small-section-header"><a href="#structfield.0" class="anchor field"></a><code>0: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#96-113">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"></div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#98-100">source</a></span><a href="#method.floor" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#102-104">source</a></span><a href="#method.ceil" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h4></section></summary><div class="docblock"><p><code>VirtAddr</code>-><code>VirtPageNum</code></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.page_offset" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#106-108">source</a></span><a href="#method.page_offset" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.page_offset" class="fnname">page_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get page offset </p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aligned" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#110-112">source</a></span><a href="#method.aligned" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.aligned" class="fnname">aligned</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check page aligned </p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#26-30">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="docblock"><p>Debugging</p>
|
||||
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#27-29">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#81-85">source</a></span><a href="#impl-From%3CVirtAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#82-84">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#110-115">source</a></span><a href="#impl-From%3CVirtAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#111-114">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#116-120">source</a></span><a href="#impl-From%3CVirtPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#117-119">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#81-89">source</a></span><a href="#impl-From%3CVirtAddr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#82-88">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtAddr%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#114-119">source</a></span><a href="#impl-From%3CVirtAddr%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>> for <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#115-118">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVirtPageNum%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#120-124">source</a></span><a href="#impl-From%3CVirtPageNum%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#121-123">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="struct" href="address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#61-65">source</a></span><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#62-64">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#15">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/os/mm/address.rs.html#15">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -266,6 +266,10 @@
|
||||
<span id="261">261</span>
|
||||
<span id="262">262</span>
|
||||
<span id="263">263</span>
|
||||
<span id="264">264</span>
|
||||
<span id="265">265</span>
|
||||
<span id="266">266</span>
|
||||
<span id="267">267</span>
|
||||
</pre><pre class="rust"><code><span class="doccomment">//! Implementation of physical and virtual address and page number.</span>
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">super</span>::PageTableEntry</span>;
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::config</span>::{<span class="ident">PAGE_SIZE</span>, <span class="ident">PAGE_SIZE_BITS</span>};
|
||||
@ -348,7 +352,11 @@
|
||||
}
|
||||
<span class="kw">impl</span> <span class="ident">From</span><span class="op"><</span><span class="ident">VirtAddr</span><span class="op">></span> <span class="kw">for</span> <span class="ident">usize</span> {
|
||||
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">v</span>: <span class="ident">VirtAddr</span>) -> <span class="self">Self</span> {
|
||||
<span class="ident">v</span>.<span class="number">0</span>
|
||||
<span class="kw">if</span> <span class="ident">v</span>.<span class="number">0</span> <span class="op">></span><span class="op">=</span> (<span class="number">1</span> <span class="op"><</span><span class="op"><</span> (<span class="ident">VA_WIDTH_SV39</span> <span class="op">-</span> <span class="number">1</span>)) {
|
||||
<span class="ident">v</span>.<span class="number">0</span> <span class="op">|</span> (<span class="op">!</span>((<span class="number">1</span> <span class="op"><</span><span class="op"><</span> <span class="ident">VA_WIDTH_SV39</span>) <span class="op">-</span> <span class="number">1</span>))
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">v</span>.<span class="number">0</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="kw">impl</span> <span class="ident">From</span><span class="op"><</span><span class="ident">VirtPageNum</span><span class="op">></span> <span class="kw">for</span> <span class="ident">usize</span> {
|
||||
|
Loading…
Reference in New Issue
Block a user