mirror of
https://github.com/Rust-GPU/rust-gpu.git
synced 2026-06-08 02:29:51 +09:00
91 lines
26 KiB
HTML
91 lines
26 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A trait for reading references to `Pod` types from a block of data."><title>ReadRef in object::read - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="object" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (02c7f9bec 2026-04-10)" data-channel="nightly" data-search-js="search-b5634cc7.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ReadRef</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../object/index.html">object</a><span class="version">0.37.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ReadRef</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.len" title="len">len</a></li><li><a href="#tymethod.read_bytes_at" title="read_bytes_at">read_bytes_at</a></li><li><a href="#tymethod.read_bytes_at_until" title="read_bytes_at_until">read_bytes_at_until</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.read" title="read">read</a></li><li><a href="#method.read_at" title="read_at">read_at</a></li><li><a href="#method.read_bytes" title="read_bytes">read_bytes</a></li><li><a href="#method.read_slice" title="read_slice">read_slice</a></li><li><a href="#method.read_slice_at" title="read_slice_at">read_slice_at</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ReadRef%3C'a%3E-for-%26%5Bu8%5D" title="&'a [u8]">&'a [u8]</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In object::<wbr>read</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">object</a>::<wbr><a href="index.html">read</a></div><h1>Trait <span class="trait">ReadRef</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/object/read/read_ref.rs.html#49-124">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ReadRef<'a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> {
|
|
// Required methods
|
|
fn <a href="#tymethod.len" class="fn">len</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.read_bytes_at" class="fn">read_bytes_at</a>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.read_bytes_at_until" class="fn">read_bytes_at_until</a>(
|
|
self,
|
|
range: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>>,
|
|
delimiter: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.read_bytes" class="fn">read_bytes</a>(self, offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.read" class="fn">read</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(self, offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.read_at" class="fn">read_at</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.read_slice" class="fn">read_slice</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(
|
|
self,
|
|
offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
|
count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[T]</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.read_slice_at" class="fn">read_slice_at</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(
|
|
self,
|
|
offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
|
count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[T]</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for reading references to <a href="../pod/trait.Pod.html" title="trait object::pod::Pod"><code>Pod</code></a> types from a block of data.</p>
|
|
<p>This allows parsers to handle both of these cases:</p>
|
|
<ul>
|
|
<li>the block of data exists in memory, and it is desirable
|
|
to use references to this block instead of copying it,</li>
|
|
<li>the block of data exists in storage, and it is desirable
|
|
to read on demand to minimize I/O and memory usage.</li>
|
|
</ul>
|
|
<p>A block of data typically exists in memory as a result of using a memory
|
|
mapped file, and the crate was written with this use case in mind.
|
|
Reading the entire file into a <code>Vec</code> is also possible, but it often uses
|
|
more I/O and memory.
|
|
Both of these are handled by the <code>ReadRef</code> implementation for <code>&[u8]</code>.</p>
|
|
<p>For the second use case, the <code>ReadRef</code> trait is implemented for
|
|
<a href="struct.ReadCache.html" title="struct object::read::ReadCache"><code>&ReadCache</code></a>. This is useful for environments where
|
|
memory mapped files are not available or not suitable, such as WebAssembly.
|
|
This differs from reading into a <code>Vec</code> in that it only reads the portions
|
|
of the file that are needed for parsing.</p>
|
|
<p>The methods accept <code>self</code> by value because <code>Self</code> is expected to behave
|
|
similar to a reference: it may be a reference with a lifetime of <code>'a</code>,
|
|
or it may be a wrapper of a reference.</p>
|
|
<p>The <code>Clone</code> and <code>Copy</code> bounds are for convenience, and since <code>Self</code> is
|
|
expected to be similar to a reference, these are easily satisfied.</p>
|
|
<p>Object file parsers typically use offsets to locate the structures
|
|
in the block, and will most commonly use the <code>*_at</code> methods to
|
|
read a structure at a known offset.</p>
|
|
<p>Occasionally file parsers will need to treat the block as a stream,
|
|
and so convenience methods are provided that update an offset with
|
|
the size that was read.</p>
|
|
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.len" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#51">Source</a><h4 class="code-header">fn <a href="#tymethod.len" class="fn">len</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>The total size of the block of data.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.read_bytes_at" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#56">Source</a><h4 class="code-header">fn <a href="#tymethod.read_bytes_at" class="fn">read_bytes_at</a>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a <code>u8</code> slice at the given offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.read_bytes_at_until" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#64">Source</a><h4 class="code-header">fn <a href="#tymethod.read_bytes_at_until" class="fn">read_bytes_at_until</a>(
|
|
self,
|
|
range: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>>,
|
|
delimiter: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a delimited <code>u8</code> slice which starts at range.start.</p>
|
|
<p>Does not include the delimiter.</p>
|
|
<p>Returns an error if the range is out of bounds or the delimiter is
|
|
not found in the range.</p>
|
|
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.read_bytes" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#69-73">Source</a><h4 class="code-header">fn <a href="#method.read_bytes" class="fn">read_bytes</a>(self, offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a <code>u8</code> slice at the given offset, and update the offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.read" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#84-89">Source</a><h4 class="code-header">fn <a href="#method.read" class="fn">read</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(self, offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a <code>Pod</code> type at the given offset, and update the offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
<p>The default implementation uses <code>read_bytes</code>, and returns an error if
|
|
<code>read_bytes</code> does not return bytes with the correct alignment for <code>T</code>.
|
|
Implementors may want to provide their own implementation that ensures
|
|
the alignment can be satisfied. Alternatively, only use this method with
|
|
types that do not need alignment (see the <code>unaligned</code> feature of this crate).</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.read_at" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#96-98">Source</a><h4 class="code-header">fn <a href="#method.read_at" class="fn">read_at</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a <code>Pod</code> type at the given offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
<p>Also see the <code>read</code> method for information regarding alignment of <code>T</code>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.read_slice" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#105-114">Source</a><h4 class="code-header">fn <a href="#method.read_slice" class="fn">read_slice</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(
|
|
self,
|
|
offset: &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
|
count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[T]</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a slice of a <code>Pod</code> type at the given offset, and update the offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
<p>Also see the <code>read</code> method for information regarding alignment of <code>T</code>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.read_slice_at" class="method"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#121-123">Source</a><h4 class="code-header">fn <a href="#method.read_slice_at" class="fn">read_slice_at</a><T: <a class="trait" href="../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[T]</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Get a reference to a slice of a <code>Pod</code> type at the given offset.</p>
|
|
<p>Returns an error if offset or size are out of bounds.</p>
|
|
<p>Also see the <code>read</code> method for information regarding alignment of <code>T</code>.</p>
|
|
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ReadRef%3C'a%3E-for-%26%5Bu8%5D" class="impl"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#126-153">Source</a><a href="#impl-ReadRef%3C'a%3E-for-%26%5Bu8%5D" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a><'a> for &'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]</h3></section></summary><div class="impl-items"><section id="method.len" class="method trait-impl"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#127-129">Source</a><a href="#method.len" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.len" class="fn">len</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section><section id="method.read_bytes_at" class="method trait-impl"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#131-139">Source</a><a href="#method.read_bytes_at" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.read_bytes_at" class="fn">read_bytes_at</a>(self, offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section><section id="method.read_bytes_at_until" class="method trait-impl"><a class="src rightside" href="../../src/object/read/read_ref.rs.html#141-152">Source</a><a href="#method.read_bytes_at_until" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.read_bytes_at_until" class="fn">read_bytes_at_until</a>(
|
|
self,
|
|
range: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>>,
|
|
delimiter: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><div class="negative-marker"></div><section id="impl-ReadRef%3C'a%3E-for-%26ReadCache%3CR%3E" class="impl"><a class="src rightside" href="../../src/object/read/read_cache.rs.html#100-165">Source</a><a href="#impl-ReadRef%3C'a%3E-for-%26ReadCache%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<'a, R: <a class="trait" href="trait.ReadCacheOps.html" title="trait object::read::ReadCacheOps">ReadCacheOps</a>> <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a><'a> for &'a <a class="struct" href="struct.ReadCache.html" title="struct object::read::ReadCache">ReadCache</a><R></h3></section><section id="impl-ReadRef%3C'a%3E-for-ReadCacheRange%3C'a,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/read_cache.rs.html#186-214">Source</a><a href="#impl-ReadRef%3C'a%3E-for-ReadCacheRange%3C'a,+R%3E" class="anchor">§</a><h3 class="code-header">impl<'a, R: <a class="trait" href="trait.ReadCacheOps.html" title="trait object::read::ReadCacheOps">ReadCacheOps</a>> <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a><'a> for <a class="struct" href="struct.ReadCacheRange.html" title="struct object::read::ReadCacheRange">ReadCacheRange</a><'a, R></h3></section></div><script src="../../trait.impl/object/read/read_ref/trait.ReadRef.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html> |