Files
rust-gpu/api/object/read/trait.ObjectComdat.html
2026-04-13 16:52:47 +00:00

27 lines
20 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 COMDAT section group in an `Object`."><title>ObjectComdat 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="#">ObjectComdat</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="#">Object<wbr>Comdat</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.SectionIterator" title="SectionIterator">SectionIterator</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.kind" title="kind">kind</a></li><li><a href="#tymethod.name" title="name">name</a></li><li><a href="#tymethod.name_bytes" title="name_bytes">name_bytes</a></li><li><a href="#tymethod.sections" title="sections">sections</a></li><li><a href="#tymethod.symbol" title="symbol">symbol</a></li></ul><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">Object<wbr>Comdat</span>&nbsp;<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/traits.rs.html#467-487">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ObjectComdat&lt;'data&gt;: Sealed {
type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a>: <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>&lt;Item = <a class="struct" href="struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>&gt;;
// Required methods
fn <a href="#tymethod.kind" class="fn">kind</a>(&amp;self) -&gt; <a class="enum" href="../enum.ComdatKind.html" title="enum object::ComdatKind">ComdatKind</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.symbol" class="fn">symbol</a>(&amp;self) -&gt; <a class="struct" href="struct.SymbolIndex.html" title="struct object::read::SymbolIndex">SymbolIndex</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.name_bytes" class="fn">name_bytes</a>(&amp;self) -&gt; <a class="type" href="type.Result.html" title="type object::read::Result">Result</a>&lt;&amp;'data [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.name" class="fn">name</a>(&amp;self) -&gt; <a class="type" href="type.Result.html" title="type object::read::Result">Result</a>&lt;&amp;'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.sections" class="fn">sections</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.ObjectComdat.html#associatedtype.SectionIterator" title="type object::read::ObjectComdat::SectionIterator">SectionIterator</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A COMDAT section group in an <a href="trait.Object.html" title="trait object::read::Object"><code>Object</code></a>.</p>
<p>This trait is part of the unified read API.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.SectionIterator" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#469">Source</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a>: <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>&lt;Item = <a class="struct" href="struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>&gt;</h4></section></summary><div class="docblock"><p>An iterator for the sections in the section group.</p>
</div></details></div><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.kind" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#472">Source</a><h4 class="code-header">fn <a href="#tymethod.kind" class="fn">kind</a>(&amp;self) -&gt; <a class="enum" href="../enum.ComdatKind.html" title="enum object::ComdatKind">ComdatKind</a></h4></section></summary><div class="docblock"><p>Returns the COMDAT selection kind.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.symbol" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#475">Source</a><h4 class="code-header">fn <a href="#tymethod.symbol" class="fn">symbol</a>(&amp;self) -&gt; <a class="struct" href="struct.SymbolIndex.html" title="struct object::read::SymbolIndex">SymbolIndex</a></h4></section></summary><div class="docblock"><p>Returns the index of the symbol used for the name of COMDAT section group.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.name_bytes" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#478">Source</a><h4 class="code-header">fn <a href="#tymethod.name_bytes" class="fn">name_bytes</a>(&amp;self) -&gt; <a class="type" href="type.Result.html" title="type object::read::Result">Result</a>&lt;&amp;'data [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;</h4></section></summary><div class="docblock"><p>Returns the name of the COMDAT section group.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.name" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#483">Source</a><h4 class="code-header">fn <a href="#tymethod.name" class="fn">name</a>(&amp;self) -&gt; <a class="type" href="type.Result.html" title="type object::read::Result">Result</a>&lt;&amp;'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the name of the COMDAT section group.</p>
<p>Returns an error if the name is not UTF-8.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sections" class="method"><a class="src rightside" href="../../src/object/read/traits.rs.html#486">Source</a><h4 class="code-header">fn <a href="#tymethod.sections" class="fn">sections</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.ObjectComdat.html#associatedtype.SectionIterator" title="type object::read::ObjectComdat::SectionIterator">SectionIterator</a></h4></section></summary><div class="docblock"><p>Get the sections in this section group.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><div class="negative-marker"></div><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-ElfComdat%3C'data,+'file,+Elf,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/elf/comdat.rs.html#118-155">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-ElfComdat%3C'data,+'file,+Elf,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, Elf, R&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="elf/struct.ElfComdat.html" title="struct object::read::elf::ElfComdat">ElfComdat</a>&lt;'data, 'file, Elf, R&gt;<div class="where">where
Elf: <a class="trait" href="elf/trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>,
R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/elf/comdat.rs.html#123">Source</a><a href="#associatedtype.SectionIterator-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="elf/struct.ElfComdatSectionIterator.html" title="struct object::read::elf::ElfComdatSectionIterator">ElfComdatSectionIterator</a>&lt;'data, 'file, Elf, R&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-MachOComdat%3C'data,+'file,+Mach,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/macho/file.rs.html#577-608">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-MachOComdat%3C'data,+'file,+Mach,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, Mach, R&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="macho/struct.MachOComdat.html" title="struct object::read::macho::MachOComdat">MachOComdat</a>&lt;'data, 'file, Mach, R&gt;<div class="where">where
Mach: <a class="trait" href="macho/trait.MachHeader.html" title="trait object::read::macho::MachHeader">MachHeader</a>,
R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/macho/file.rs.html#582">Source</a><a href="#associatedtype.SectionIterator-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="macho/struct.MachOComdatSectionIterator.html" title="struct object::read::macho::MachOComdatSectionIterator">MachOComdatSectionIterator</a>&lt;'data, 'file, Mach, R&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-PeComdat%3C'data,+'file,+Pe,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/pe/file.rs.html#481-512">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-PeComdat%3C'data,+'file,+Pe,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, Pe, R&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="pe/struct.PeComdat.html" title="struct object::read::pe::PeComdat">PeComdat</a>&lt;'data, 'file, Pe, R&gt;<div class="where">where
Pe: <a class="trait" href="pe/trait.ImageNtHeaders.html" title="trait object::read::pe::ImageNtHeaders">ImageNtHeaders</a>,
R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/pe/file.rs.html#486">Source</a><a href="#associatedtype.SectionIterator-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="pe/struct.PeComdatSectionIterator.html" title="struct object::read::pe::PeComdatSectionIterator">PeComdatSectionIterator</a>&lt;'data, 'file, Pe, R&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-WasmComdat%3C'data,+'file,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/wasm.rs.html#941-968">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-WasmComdat%3C'data,+'file,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, R&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="wasm/struct.WasmComdat.html" title="struct object::read::wasm::WasmComdat">WasmComdat</a>&lt;'data, 'file, R&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/wasm.rs.html#942">Source</a><a href="#associatedtype.SectionIterator-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="wasm/struct.WasmComdatSectionIterator.html" title="struct object::read::wasm::WasmComdatSectionIterator">WasmComdatSectionIterator</a>&lt;'data, 'file, R&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-Comdat%3C'data,+'file,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/any.rs.html#926-955">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-Comdat%3C'data,+'file,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="struct.Comdat.html" title="struct object::read::Comdat">Comdat</a>&lt;'data, 'file, R&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/any.rs.html#927">Source</a><a href="#associatedtype.SectionIterator-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="struct.ComdatSectionIterator.html" title="struct object::read::ComdatSectionIterator">ComdatSectionIterator</a>&lt;'data, 'file, R&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-CoffComdat%3C'data,+'file,+R,+Coff%3E" class="impl"><a class="src rightside" href="../../src/object/read/coff/comdat.rs.html#119-164">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-CoffComdat%3C'data,+'file,+R,+Coff%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;, Coff: <a class="trait" href="coff/trait.CoffHeader.html" title="trait object::read::coff::CoffHeader">CoffHeader</a>&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="coff/struct.CoffComdat.html" title="struct object::read::coff::CoffComdat">CoffComdat</a>&lt;'data, 'file, R, Coff&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/coff/comdat.rs.html#122">Source</a><a href="#associatedtype.SectionIterator-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="coff/struct.CoffComdatSectionIterator.html" title="struct object::read::coff::CoffComdatSectionIterator">CoffComdatSectionIterator</a>&lt;'data, 'file, R, Coff&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ObjectComdat%3C'data%3E-for-XcoffComdat%3C'data,+'file,+Xcoff,+R%3E" class="impl"><a class="src rightside" href="../../src/object/read/xcoff/comdat.rs.html#71-102">Source</a><a href="#impl-ObjectComdat%3C'data%3E-for-XcoffComdat%3C'data,+'file,+Xcoff,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'data, 'file, Xcoff, R&gt; <a class="trait" href="trait.ObjectComdat.html" title="trait object::read::ObjectComdat">ObjectComdat</a>&lt;'data&gt; for <a class="struct" href="xcoff/struct.XcoffComdat.html" title="struct object::read::xcoff::XcoffComdat">XcoffComdat</a>&lt;'data, 'file, Xcoff, R&gt;<div class="where">where
Xcoff: <a class="trait" href="xcoff/trait.FileHeader.html" title="trait object::read::xcoff::FileHeader">FileHeader</a>,
R: <a class="trait" href="trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.SectionIterator-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/object/read/xcoff/comdat.rs.html#76">Source</a><a href="#associatedtype.SectionIterator-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.SectionIterator" class="associatedtype">SectionIterator</a> = <a class="struct" href="xcoff/struct.XcoffComdatSectionIterator.html" title="struct object::read::xcoff::XcoffComdatSectionIterator">XcoffComdatSectionIterator</a>&lt;'data, 'file, Xcoff, R&gt;</h4></section></div></details></div><script src="../../trait.impl/object/read/traits/trait.ObjectComdat.js" async></script></section></div></main></body></html>