edlang/object/read/elf/trait.SectionHeader.html

283 lines
72 KiB
HTML
Raw Normal View History

<!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 generic access to `elf::SectionHeader32` and `elf::SectionHeader64`."><title>SectionHeader in object::read::elf - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ac92e1bbe349e143.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.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../object/index.html">object</a><span class="version">0.32.2</span></h2></div><h2 class="location"><a href="#">SectionHeader</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Elf">Elf</a></li><li><a href="#associatedtype.Endian">Endian</a></li><li><a href="#associatedtype.Word">Word</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.sh_addr">sh_addr</a></li><li><a href="#tymethod.sh_addralign">sh_addralign</a></li><li><a href="#tymethod.sh_entsize">sh_entsize</a></li><li><a href="#tymethod.sh_flags">sh_flags</a></li><li><a href="#tymethod.sh_info">sh_info</a></li><li><a href="#tymethod.sh_link">sh_link</a></li><li><a href="#tymethod.sh_name">sh_name</a></li><li><a href="#tymethod.sh_offset">sh_offset</a></li><li><a href="#tymethod.sh_size">sh_size</a></li><li><a href="#tymethod.sh_type">sh_type</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.attributes">attributes</a></li><li><a href="#method.compression">compression</a></li><li><a href="#method.data">data</a></li><li><a href="#method.data_as_array">data_as_array</a></li><li><a href="#method.dynamic">dynamic</a></li><li><a href="#method.file_range">file_range</a></li><li><a href="#method.gnu_attributes">gnu_attributes</a></li><li><a href="#method.gnu_hash">gnu_hash</a></li><li><a href="#method.gnu_hash_header">gnu_hash_header</a></li><li><a href="#method.gnu_verdef">gnu_verdef</a></li><li><a href="#method.gnu_verneed">gnu_verneed</a></li><li><a
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../object/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../../index.html">object</a>::<wbr><a href="../index.html">read</a>::<wbr><a href="index.html">elf</a>::<wbr><a class="trait" href="#">SectionHeader</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../../src/object/read/elf/section.rs.html#601-1038">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait SectionHeader: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="../../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a> {
type <a href="#associatedtype.Elf" class="associatedtype">Elf</a>: <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&lt;SectionHeader = Self, Endian = Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>, Word = Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>&gt;;
type <a href="#associatedtype.Word" class="associatedtype">Word</a>: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>&gt;;
type <a href="#associatedtype.Endian" class="associatedtype">Endian</a>: <a class="trait" href="../../endian/trait.Endian.html" title="trait object::endian::Endian">Endian</a>;
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 31 methods</span></summary> // Required methods
fn <a href="#tymethod.sh_name" class="fn">sh_name</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_type" class="fn">sh_type</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_flags" class="fn">sh_flags</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_addr" class="fn">sh_addr</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_offset" class="fn">sh_offset</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_size" class="fn">sh_size</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_link" class="fn">sh_link</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_info" class="fn">sh_info</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_addralign" class="fn">sh_addralign</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.sh_entsize" class="fn">sh_entsize</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>;
// Provided methods
fn <a href="#method.name" class="fn">name</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
strings: <a class="struct" href="../struct.StringTable.html" title="struct object::read::StringTable">StringTable</a>&lt;'data, R&gt;
) -&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/1.76.0/core/primitive.u8.html">u8</a>]&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.file_range" class="fn">file_range</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>)&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.data" class="fn">data</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&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/1.76.0/core/primitive.u8.html">u8</a>]&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.data_as_array" class="fn">data_as_array</a>&lt;'data, T: <a class="trait" href="../../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&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/1.76.0/core/primitive.slice.html">[T]</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.strings" class="fn">strings</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.StringTable.html" title="struct object::read::StringTable">StringTable</a>&lt;'data, R&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.symbols" class="fn">symbols</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R,
sections: &amp;<a class="struct" href="struct.SectionTable.html" title="struct object::read::elf::SectionTable">SectionTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>, R&gt;,
section_index: <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SymbolTable.html" title="struct object::read::elf::SymbolTable">SymbolTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>, R&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.rel" class="fn">rel</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Rel" title="type object::read::elf::FileHeader::Rel">Rel</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.rela" class="fn">rela</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Rela" title="type object::read::elf::FileHeader::Rela">Rela</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.dynamic" class="fn">dynamic</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Dyn" title="type object::read::elf::FileHeader::Dyn">Dyn</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.notes" class="fn">notes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.NoteIterator.html" title="struct object::read::elf::NoteIterator">NoteIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.group" class="fn">group</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>, &amp;'data [<a class="struct" href="../../endian/struct.U32Bytes.html" title="struct object::endian::U32Bytes">U32Bytes</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;])&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.hash_header" class="fn">hash_header</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'data <a class="struct" href="../../elf/struct.HashHeader.html" title="struct object::elf::HashHeader">HashHeader</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.hash" class="fn">hash</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.HashTable.html" title="struct object::read::elf::HashTable">HashTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_hash_header" class="fn">gnu_hash_header</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'data <a class="struct" href="../../elf/struct.GnuHashHeader.html" title="struct object::elf::GnuHashHeader">GnuHashHeader</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_hash" class="fn">gnu_hash</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.GnuHashTable.html" title="struct object::read::elf::GnuHashTable">GnuHashTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_versym" class="fn">gnu_versym</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [<a class="struct" href="../../elf/struct.Versym.html" title="struct object::elf::Versym">Versym</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_verdef" class="fn">gnu_verdef</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.VerdefIterator.html" title="struct object::read::elf::VerdefIterator">VerdefIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_verneed" class="fn">gnu_verneed</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.VerneedIterator.html" title="struct object::read::elf::VerneedIterator">VerneedIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.gnu_attributes" class="fn">gnu_attributes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.AttributesSection.html" title="struct object::read::elf::AttributesSection">AttributesSection</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.attributes" class="fn">attributes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="struct" href="struct.AttributesSection.html" title="struct object::read::elf::AttributesSection">AttributesSection</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.compression" class="fn">compression</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data &lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.CompressionHeader" title="type object::read::elf::FileHeader::CompressionHeader">CompressionHeader</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>)&gt;&gt; { ... }
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for generic access to <a href="../../elf/struct.SectionHeader32.html" title="struct object::elf::SectionHeader32"><code>elf::SectionHeader32</code></a> and <a href="../../elf/struct.SectionHeader64.html" title="struct object::elf::SectionHeader64"><code>elf::SectionHeader64</code></a>.</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"><section id="associatedtype.Elf" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#602">source</a><h4 class="code-header">type <a href="#associatedtype.Elf" class="associatedtype">Elf</a>: <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&lt;SectionHeader = Self, Endian = Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>, Word = Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a>&gt;</h4></section><section id="associatedtype.Word" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#603">source</a><h4 class="code-header">type <a href="#associatedtype.Word" class="associatedtype">Word</a>: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>&gt;</h4></section><section id="associatedtype.Endian" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#604">source</a><h4 class="code-header">type <a href="#associatedtype.Endian" class="associatedtype">Endian</a>: <a class="trait" href="../../endian/trait.Endian.html" title="trait object::endian::Endian">Endian</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.sh_name" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#606">source</a><h4 class="code-header">fn <a href="#tymethod.sh_name" class="fn">sh_name</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></h4></section><section id="tymethod.sh_type" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#607">source</a><h4 class="code-header">fn <a href="#tymethod.sh_type" class="fn">sh_type</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></h4></section><section id="tymethod.sh_flags" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#608">source</a><h4 class="code-header">fn <a href="#tymethod.sh_flags" class="fn">sh_flags</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a></h4></section><section id="tymethod.sh_addr" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#609">source</a><h4 class="code-header">fn <a href="#tymethod.sh_addr" class="fn">sh_addr</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Word" title="type object::read::elf::SectionHeader::Word">Word</a></h4></section><section id="tymethod.sh_offset" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#610">source</a><
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
strings: <a class="struct" href="../struct.StringTable.html" title="struct object::read::StringTable">StringTable</a>&lt;'data, R&gt;
) -&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/1.76.0/core/primitive.u8.html">u8</a>]&gt;</h4></section></summary><div class="docblock"><p>Parse the section name from the string table.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.file_range" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#631-637">source</a><h4 class="code-header">fn <a href="#method.file_range" class="fn">file_range</a>(&amp;self, endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>)&gt;</h4></section></summary><div class="docblock"><p>Return the offset and size of the section in the file.</p>
<p>Returns <code>None</code> for sections that have no data in the file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.data" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#643-654">source</a><h4 class="code-header">fn <a href="#method.data" class="fn">data</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&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/1.76.0/core/primitive.u8.html">u8</a>]&gt;</h4></section></summary><div class="docblock"><p>Return the section data.</p>
<p>Returns <code>Ok(&amp;[])</code> if the section has no data.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.data_as_array" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#661-669">source</a><h4 class="code-header">fn <a href="#method.data_as_array" class="fn">data_as_array</a>&lt;'data, T: <a class="trait" href="../../pod/trait.Pod.html" title="trait object::pod::Pod">Pod</a>, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&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/1.76.0/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div class="docblock"><p>Return the section data as a slice of the given type.</p>
<p>Allows padding at the end of the data.
Returns <code>Ok(&amp;[])</code> if the section has no data.
Returns <code>Err</code> for invalid values, including bad alignment.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.strings" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#675-689">source</a><h4 class="code-header">fn <a href="#method.strings" class="fn">strings</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.StringTable.html" title="struct object::read::StringTable">StringTable</a>&lt;'data, R&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the strings in the section.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain strings.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.symbols" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#700-712">source</a><h4 class="code-header">fn <a href="#method.symbols" class="fn">symbols</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R,
sections: &amp;<a class="struct" href="struct.SectionTable.html" title="struct object::read::elf::SectionTable">SectionTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>, R&gt;,
section_index: <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SymbolTable.html" title="struct object::read::elf::SymbolTable">SymbolTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>, R&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the symbols in the section.</p>
<p>Also finds the linked string table in <code>sections</code>.</p>
<p><code>section_index</code> must be the 0-based index of this section, and is used
to find the corresponding extended section index table in <code>sections</code>.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain symbols.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rel" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#720-733">source</a><h4 class="code-header">fn <a href="#method.rel" class="fn">rel</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Rel" title="type object::read::elf::FileHeader::Rel">Rel</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the <code>Elf::Rel</code> entries in the section.</p>
<p>Also returns the linked symbol table index.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain relocations.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rela" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#741-754">source</a><h4 class="code-header">fn <a href="#method.rela" class="fn">rela</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Rela" title="type object::read::elf::FileHeader::Rela">Rela</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the <code>Elf::Rela</code> entries in the section.</p>
<p>Also returns the linked symbol table index.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain relocations.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dynamic" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#762-775">source</a><h4 class="code-header">fn <a href="#method.dynamic" class="fn">dynamic</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.Dyn" title="type object::read::elf::FileHeader::Dyn">Dyn</a>], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return entries in a dynamic section.</p>
<p>Also returns the linked string table index.</p>
<p>Returns <code>Ok(None)</code> if the section type is not <code>SHT_DYNAMIC</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.notes" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#781-794">source</a><h4 class="code-header">fn <a href="#method.notes" class="fn">notes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.NoteIterator.html" title="struct object::read::elf::NoteIterator">NoteIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a note iterator for the section data.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain notes.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.group" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#803-824">source</a><h4 class="code-header">fn <a href="#method.group" class="fn">group</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>, &amp;'data [<a class="struct" href="../../endian/struct.U32Bytes.html" title="struct object::endian::U32Bytes">U32Bytes</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;])&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the contents of a group section.</p>
<p>The first value is a <code>GRP_*</code> value, and the remaining values
are section indices.</p>
<p>Returns <code>Ok(None)</code> if the section does not define a group.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hash_header" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#830-845">source</a><h4 class="code-header">fn <a href="#method.hash_header" class="fn">hash_header</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'data <a class="struct" href="../../elf/struct.HashHeader.html" title="struct object::elf::HashHeader">HashHeader</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the header of a SysV hash section.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain a SysV hash.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hash" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#853-867">source</a><h4 class="code-header">fn <a href="#method.hash" class="fn">hash</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.HashTable.html" title="struct object::read::elf::HashTable">HashTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the contents of a SysV hash section.</p>
<p>Also returns the linked symbol table index.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain a SysV hash.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_hash_header" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#873-888">source</a><h4 class="code-header">fn <a href="#method.gnu_hash_header" class="fn">gnu_hash_header</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'data <a class="struct" href="../../elf/struct.GnuHashHeader.html" title="struct object::elf::GnuHashHeader">GnuHashHeader</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the header of a GNU hash section.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain a GNU hash.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_hash" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#896-910">source</a><h4 class="code-header">fn <a href="#method.gnu_hash" class="fn">gnu_hash</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.GnuHashTable.html" title="struct object::read::elf::GnuHashTable">GnuHashTable</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the contents of a GNU hash section.</p>
<p>Also returns the linked symbol table index.</p>
<p>Returns <code>Ok(None)</code> if the section does not contain a GNU hash.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_versym" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#918-931">source</a><h4 class="code-header">fn <a href="#method.gnu_versym" class="fn">gnu_versym</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data [<a class="struct" href="../../elf/struct.Versym.html" title="struct object::elf::Versym">Versym</a>&lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>&gt;], <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the contents of a <code>SHT_GNU_VERSYM</code> section.</p>
<p>Also returns the linked symbol table index.</p>
<p>Returns <code>Ok(None)</code> if the section type is not <code>SHT_GNU_VERSYM</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_verdef" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#939-952">source</a><h4 class="code-header">fn <a href="#method.gnu_verdef" class="fn">gnu_verdef</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.VerdefIterator.html" title="struct object::read::elf::VerdefIterator">VerdefIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return an iterator for the entries of a <code>SHT_GNU_VERDEF</code> section.</p>
<p>Also returns the linked string table index.</p>
<p>Returns <code>Ok(None)</code> if the section type is not <code>SHT_GNU_VERDEF</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_verneed" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#960-973">source</a><h4 class="code-header">fn <a href="#method.gnu_verneed" class="fn">gnu_verneed</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.VerneedIterator.html" title="struct object::read::elf::VerneedIterator">VerneedIterator</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;, <a class="struct" href="../struct.SectionIndex.html" title="struct object::read::SectionIndex">SectionIndex</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Return an iterator for the entries of a <code>SHT_GNU_VERNEED</code> section.</p>
<p>Also returns the linked string table index.</p>
<p>Returns <code>Ok(None)</code> if the section type is not <code>SHT_GNU_VERNEED</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gnu_attributes" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#979-988">source</a><h4 class="code-header">fn <a href="#method.gnu_attributes" class="fn">gnu_attributes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.AttributesSection.html" title="struct object::read::elf::AttributesSection">AttributesSection</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return the contents of a <code>SHT_GNU_ATTRIBUTES</code> section.</p>
<p>Returns <code>Ok(None)</code> if the section type is not <code>SHT_GNU_ATTRIBUTES</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.attributes" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#996-1003">source</a><h4 class="code-header">fn <a href="#method.attributes" class="fn">attributes</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="struct" href="struct.AttributesSection.html" title="struct object::read::elf::AttributesSection">AttributesSection</a>&lt;'data, Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Parse the contents of the section as attributes.</p>
<p>This function does not check whether section type corresponds
to a section that contains attributes.</p>
<p>Returns <code>Err</code> for invalid values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.compression" class="method"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#1012-1037">source</a><h4 class="code-header">fn <a href="#method.compression" class="fn">compression</a>&lt;'data, R: <a class="trait" href="../trait.ReadRef.html" title="trait object::read::ReadRef">ReadRef</a>&lt;'data&gt;&gt;(
&amp;self,
endian: Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Endian" title="type object::read::elf::SectionHeader::Endian">Endian</a>,
data: R
) -&gt; <a class="type" href="../type.Result.html" title="type object::read::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'data &lt;Self::<a class="associatedtype" href="trait.SectionHeader.html#associatedtype.Elf" title="type object::read::elf::SectionHeader::Elf">Elf</a> as <a class="trait" href="trait.FileHeader.html" title="trait object::read::elf::FileHeader">FileHeader</a>&gt;::<a class="associatedtype" href="trait.FileHeader.html#associatedtype.CompressionHeader" title="type object::read::elf::FileHeader::CompressionHeader">CompressionHeader</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>)&gt;&gt;</h4></section></summary><div class="docblock"><p>Parse the compression header if present.</p>
<p>Returns the header, and the offset and size of the compressed section data
in the file.</p>
<p>Returns <code>Ok(None)</code> if the section flags do not have <code>SHF_COMPRESSED</code>.
Returns <code>Err</code> for invalid values.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.76.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-SectionHeader-for-SectionHeader32%3CEndian%3E" class="impl"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#1040-1094">source</a><a href="#impl-SectionHeader-for-SectionHeader32%3CEndian%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Endian: <a class="trait" href="../../endian/trait.Endian.html" title="trait object::endian::Endian">Endian</a>&gt; <a class="trait" href="trait.SectionHeader.html" title="trait object::read::elf::SectionHeader">SectionHeader</a> for <a class="struct" href="../../elf/struct.SectionHeader32.html" title="struct object::elf::SectionHeader32">SectionHeader32</a>&lt;Endian&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Elf-1" class="associatedtype trait-impl"><a href="#associatedtype.Elf-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Elf" class="associatedtype">Elf</a> = <a class="struct" href="../../elf/struct.FileHeader32.html" title="struct object::elf::FileHeader32">FileHeader32</a>&lt;Endian&gt;</h4></section><section id="associatedtype.Word-1" class="associatedtype trait-impl"><a href="#associatedtype.Word-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Word" class="associatedtype">Word</a> = <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></h4></section><section id="associatedtype.Endian-1" class="associatedtype trait-impl"><a href="#associatedtype.Endian-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Endian" class="associatedtype">Endian</a> = Endian</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SectionHeader-for-SectionHeader64%3CEndian%3E" class="impl"><a class="src rightside" href="../../../src/object/read/elf/section.rs.html#1096-1150">source</a><a href="#impl-SectionHeader-for-SectionHeader64%3CEndian%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Endian: <a class="trait" href="../../endian/trait.Endian.html" title="trait object::endian::Endian">Endian</a>&gt; <a class="trait" href="trait.SectionHeader.html" title="trait object::read::elf::SectionHeader">SectionHeader</a> for <a class="struct" href="../../elf/struct.SectionHeader64.html" title="struct object::elf::SectionHeader64">SectionHeader64</a>&lt;Endian&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Word-2" class="associatedtype trait-impl"><a href="#associatedtype.Word-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Word" class="associatedtype">Word</a> = <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a></h4></section><section id="associatedtype.Endian-2" class="associatedtype trait-impl"><a href="#associatedtype.Endian-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Endian" class="associatedtype">Endian</a> = Endian</h4></section><section id="associatedtype.Elf-2" class="associatedtype trait-impl"><a href="#associatedtype.Elf-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Elf" class="associatedtype">Elf</a> = <a class="struct" href="../../elf/struct.FileHeader64.html" title="struct object::elf::FileHeader64">FileHeader64</a>&lt;Endian&gt;</h4></section></div></details></div><script src="../../../trait.impl/object/read/elf/section/trait.SectionHeader.js" async></script></section></div></main></body></html>