mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-14 03:58:23 +00:00
297 lines
72 KiB
HTML
297 lines
72 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 single decoded DWARF expression operation."><title>Operation in gimli::read - 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="gimli" 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 enum"><!--[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">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../gimli/index.html">gimli</a><span class="version">0.28.1</span></h2></div><h2 class="location"><a href="#">Operation</a></h2><div class="sidebar-elems"><section><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Abs">Abs</a></li><li><a href="#variant.Address">Address</a></li><li><a href="#variant.AddressIndex">AddressIndex</a></li><li><a href="#variant.And">And</a></li><li><a href="#variant.Bra">Bra</a></li><li><a href="#variant.Call">Call</a></li><li><a href="#variant.CallFrameCFA">CallFrameCFA</a></li><li><a href="#variant.ConstantIndex">ConstantIndex</a></li><li><a href="#variant.Convert">Convert</a></li><li><a href="#variant.Deref">Deref</a></li><li><a href="#variant.Div">Div</a></li><li><a href="#variant.Drop">Drop</a></li><li><a href="#variant.EntryValue">EntryValue</a></li><li><a href="#variant.Eq">Eq</a></li><li><a href="#variant.FrameOffset">FrameOffset</a></li><li><a href="#variant.Ge">Ge</a></li><li><a href="#variant.Gt">Gt</a></li><li><a href="#variant.ImplicitPointer">ImplicitPointer</a></li><li><a href="#variant.ImplicitValue">ImplicitValue</a></li><li><a href="#variant.Le">Le</a></li><li><a href="#variant.Lt">Lt</a></li><li><a href="#variant.Minus">Minus</a></li><li><a href="#variant.Mod">Mod</a></li><li><a href="#variant.Mul">Mul</a></li><li><a href="#variant.Ne">Ne</a></li><li><a href="#variant.Neg">Neg</a></li><li><a href="#variant.Nop">Nop</a></li><li><a href="#variant.Not">Not</a></li><li><a href="#variant.Or">Or</a></li><li><a href="#variant.ParameterRef">ParameterRef</a></li><li><a href="#variant.Pick">Pick</a></li><li><a href="#variant.Piece">Piece</a></li><li><a href="#variant.Plus">Plus</a></li><li><a href="#variant.PlusConstant">PlusConstant</a></li><li><a href="#variant.PushObjectAddress">PushObjectAddress</a></li><li><a href="#variant.Register">Register</a></li><li><a href="#variant.RegisterOffset">RegisterOffset</a></li><li><a href="#variant.Reinterpret">Reinterpret</a></li><li><a href="#variant.Rot">Rot</a></li><li><a href="#variant.Shl">Shl</a></li><li><a href="#variant.Shr">Shr</a></li><li><a href="#variant.Shra">Shra</a></li><li><a href="#variant.SignedConstant">SignedConstant</a></li><li><a href="#variant.Skip">Skip</a></li><li><a href="#variant.StackValue">StackValue</a></li><li><a href="#variant.Swap">Swap</a></li><li><a href="#variant.TLS">TLS</a></li><li><a href="#variant.TypedLiteral">TypedLiteral</a></li><li><a href="#variant.UnsignedConstant">UnsignedConstant</a></li><li><a href="#variant.WasmGlobal">WasmGlobal</a></li><li><a href="#variant.WasmLocal">WasmLocal</a></li><li><a href="#variant.WasmStack">WasmStack</a></li><li><a href="#variant.Xor">Xor</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.parse">parse</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Operation%3CR,+Offset%3E">Clone</a></li><li><a href="#impl-Copy-for-Operation%3CR,+Offset%3E">Copy</a></li><li><a href="#impl-Debug-for-Operation%3CR,+Offset%3E">Debug</a></li><li><a href="#impl-Eq-for-Operation%3CR,+Offset%3E">Eq</a></li><li><a href="#impl-PartialEq-for-Operation%3CR,+Offset%3E">PartialEq</a></li><li><a href="#impl-StructuralEq-for-Operation%3CR,+Offset%3E">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-Operation%3CR,+Offset%3E">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-Operation%3CR,+Offset%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Operation%3CR,+Offset%3E">Send</a></li><li><a href="#impl-Sync-for-Operation%3CR,+Offset%3E">Sync</a></li><li><a href="#impl-Unpin-for-Operation%3CR,+Offset%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Operation%3CR,+Offset%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a href="index.html">In gimli::read</a></h2></div></nav><div class="sidebar-resizer"></div>
|
||
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../gimli/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>Enum <a href="../index.html">gimli</a>::<wbr><a href="index.html">read</a>::<wbr><a class="enum" href="#">Operation</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/gimli/read/op.rs.html#34-293">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub enum Operation<R, Offset = <R as <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a>>::<a class="associatedtype" href="trait.Reader.html#associatedtype.Offset" title="type gimli::read::Reader::Offset">Offset</a>><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a>,</div>{
|
||
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 53 variants</span></summary> Deref {
|
||
base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
size: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u8.html">u8</a>,
|
||
space: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.bool.html">bool</a>,
|
||
},
|
||
Drop,
|
||
Pick {
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u8.html">u8</a>,
|
||
},
|
||
Swap,
|
||
Rot,
|
||
Abs,
|
||
And,
|
||
Div,
|
||
Minus,
|
||
Mod,
|
||
Mul,
|
||
Neg,
|
||
Not,
|
||
Or,
|
||
Plus,
|
||
PlusConstant {
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>,
|
||
},
|
||
Shl,
|
||
Shr,
|
||
Shra,
|
||
Xor,
|
||
Bra {
|
||
target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i16.html">i16</a>,
|
||
},
|
||
Eq,
|
||
Ge,
|
||
Gt,
|
||
Le,
|
||
Lt,
|
||
Ne,
|
||
Skip {
|
||
target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i16.html">i16</a>,
|
||
},
|
||
UnsignedConstant {
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>,
|
||
},
|
||
SignedConstant {
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a>,
|
||
},
|
||
Register {
|
||
register: <a class="struct" href="../struct.Register.html" title="struct gimli::Register">Register</a>,
|
||
},
|
||
RegisterOffset {
|
||
register: <a class="struct" href="../struct.Register.html" title="struct gimli::Register">Register</a>,
|
||
offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a>,
|
||
base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
},
|
||
FrameOffset {
|
||
offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a>,
|
||
},
|
||
Nop,
|
||
PushObjectAddress,
|
||
Call {
|
||
offset: <a class="enum" href="enum.DieReference.html" title="enum gimli::read::DieReference">DieReference</a><Offset>,
|
||
},
|
||
TLS,
|
||
CallFrameCFA,
|
||
Piece {
|
||
size_in_bits: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>,
|
||
bit_offset: <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>>,
|
||
},
|
||
ImplicitValue {
|
||
data: R,
|
||
},
|
||
StackValue,
|
||
ImplicitPointer {
|
||
value: <a class="struct" href="../struct.DebugInfoOffset.html" title="struct gimli::DebugInfoOffset">DebugInfoOffset</a><Offset>,
|
||
byte_offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a>,
|
||
},
|
||
EntryValue {
|
||
expression: R,
|
||
},
|
||
ParameterRef {
|
||
offset: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
},
|
||
Address {
|
||
address: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>,
|
||
},
|
||
AddressIndex {
|
||
index: <a class="struct" href="../struct.DebugAddrIndex.html" title="struct gimli::DebugAddrIndex">DebugAddrIndex</a><Offset>,
|
||
},
|
||
ConstantIndex {
|
||
index: <a class="struct" href="../struct.DebugAddrIndex.html" title="struct gimli::DebugAddrIndex">DebugAddrIndex</a><Offset>,
|
||
},
|
||
TypedLiteral {
|
||
base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
value: R,
|
||
},
|
||
Convert {
|
||
base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
},
|
||
Reinterpret {
|
||
base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset>,
|
||
},
|
||
WasmLocal {
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>,
|
||
},
|
||
WasmGlobal {
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>,
|
||
},
|
||
WasmStack {
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a>,
|
||
},
|
||
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A single decoded DWARF expression operation.</p>
|
||
<p>DWARF expression evaluation is done in two parts: first the raw
|
||
bytes of the next part of the expression are decoded; and then the
|
||
decoded operation is evaluated. This approach lets other
|
||
consumers inspect the DWARF expression without reimplementing the
|
||
decoding operation.</p>
|
||
<p>Multiple DWARF opcodes may decode into a single <code>Operation</code>. For
|
||
example, both <code>DW_OP_deref</code> and <code>DW_OP_xderef</code> are represented
|
||
using <code>Operation::Deref</code>.</p>
|
||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Deref" class="variant"><a href="#variant.Deref" class="anchor">§</a><h3 class="code-header">Deref</h3></section><div class="sub-variant" id="variant.Deref.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Deref.field.base_type" class="section-header"><a href="#variant.Deref.field.base_type" class="anchor field">§</a><code>base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE of the base type or 0 to indicate the generic type</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.Deref.field.size" class="section-header"><a href="#variant.Deref.field.size" class="anchor field">§</a><code>size: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u8.html">u8</a></code></span><div class="docblock"><p>The size of the data to dereference.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.Deref.field.space" class="section-header"><a href="#variant.Deref.field.space" class="anchor field">§</a><code>space: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.bool.html">bool</a></code></span><div class="docblock"><p>True if the dereference operation takes an address space
|
||
argument from the stack; false otherwise.</p>
|
||
</div></div></div><div class="docblock"><p>Dereference the topmost value of the stack.</p>
|
||
</div><section id="variant.Drop" class="variant"><a href="#variant.Drop" class="anchor">§</a><h3 class="code-header">Drop</h3></section><div class="docblock"><p>Drop an item from the stack.</p>
|
||
</div><section id="variant.Pick" class="variant"><a href="#variant.Pick" class="anchor">§</a><h3 class="code-header">Pick</h3></section><div class="sub-variant" id="variant.Pick.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Pick.field.index" class="section-header"><a href="#variant.Pick.field.index" class="anchor field">§</a><code>index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u8.html">u8</a></code></span><div class="docblock"><p>The index, from the top of the stack, of the item to copy.</p>
|
||
</div></div></div><div class="docblock"><p>Pick an item from the stack and push it on top of the stack.
|
||
This operation handles <code>DW_OP_pick</code>, <code>DW_OP_dup</code>, and
|
||
<code>DW_OP_over</code>.</p>
|
||
</div><section id="variant.Swap" class="variant"><a href="#variant.Swap" class="anchor">§</a><h3 class="code-header">Swap</h3></section><div class="docblock"><p>Swap the top two stack items.</p>
|
||
</div><section id="variant.Rot" class="variant"><a href="#variant.Rot" class="anchor">§</a><h3 class="code-header">Rot</h3></section><div class="docblock"><p>Rotate the top three stack items.</p>
|
||
</div><section id="variant.Abs" class="variant"><a href="#variant.Abs" class="anchor">§</a><h3 class="code-header">Abs</h3></section><div class="docblock"><p>Take the absolute value of the top of the stack.</p>
|
||
</div><section id="variant.And" class="variant"><a href="#variant.And" class="anchor">§</a><h3 class="code-header">And</h3></section><div class="docblock"><p>Bitwise <code>and</code> of the top two values on the stack.</p>
|
||
</div><section id="variant.Div" class="variant"><a href="#variant.Div" class="anchor">§</a><h3 class="code-header">Div</h3></section><div class="docblock"><p>Divide the top two values on the stack.</p>
|
||
</div><section id="variant.Minus" class="variant"><a href="#variant.Minus" class="anchor">§</a><h3 class="code-header">Minus</h3></section><div class="docblock"><p>Subtract the top two values on the stack.</p>
|
||
</div><section id="variant.Mod" class="variant"><a href="#variant.Mod" class="anchor">§</a><h3 class="code-header">Mod</h3></section><div class="docblock"><p>Modulus of the top two values on the stack.</p>
|
||
</div><section id="variant.Mul" class="variant"><a href="#variant.Mul" class="anchor">§</a><h3 class="code-header">Mul</h3></section><div class="docblock"><p>Multiply the top two values on the stack.</p>
|
||
</div><section id="variant.Neg" class="variant"><a href="#variant.Neg" class="anchor">§</a><h3 class="code-header">Neg</h3></section><div class="docblock"><p>Negate the top of the stack.</p>
|
||
</div><section id="variant.Not" class="variant"><a href="#variant.Not" class="anchor">§</a><h3 class="code-header">Not</h3></section><div class="docblock"><p>Bitwise <code>not</code> of the top of the stack.</p>
|
||
</div><section id="variant.Or" class="variant"><a href="#variant.Or" class="anchor">§</a><h3 class="code-header">Or</h3></section><div class="docblock"><p>Bitwise <code>or</code> of the top two values on the stack.</p>
|
||
</div><section id="variant.Plus" class="variant"><a href="#variant.Plus" class="anchor">§</a><h3 class="code-header">Plus</h3></section><div class="docblock"><p>Add the top two values on the stack.</p>
|
||
</div><section id="variant.PlusConstant" class="variant"><a href="#variant.PlusConstant" class="anchor">§</a><h3 class="code-header">PlusConstant</h3></section><div class="sub-variant" id="variant.PlusConstant.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.PlusConstant.field.value" class="section-header"><a href="#variant.PlusConstant.field.value" class="anchor field">§</a><code>value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The value to add.</p>
|
||
</div></div></div><div class="docblock"><p>Add a constant to the topmost value on the stack.</p>
|
||
</div><section id="variant.Shl" class="variant"><a href="#variant.Shl" class="anchor">§</a><h3 class="code-header">Shl</h3></section><div class="docblock"><p>Logical left shift of the 2nd value on the stack by the number
|
||
of bits given by the topmost value on the stack.</p>
|
||
</div><section id="variant.Shr" class="variant"><a href="#variant.Shr" class="anchor">§</a><h3 class="code-header">Shr</h3></section><div class="docblock"><p>Right shift of the 2nd value on the stack by the number of
|
||
bits given by the topmost value on the stack.</p>
|
||
</div><section id="variant.Shra" class="variant"><a href="#variant.Shra" class="anchor">§</a><h3 class="code-header">Shra</h3></section><div class="docblock"><p>Arithmetic left shift of the 2nd value on the stack by the
|
||
number of bits given by the topmost value on the stack.</p>
|
||
</div><section id="variant.Xor" class="variant"><a href="#variant.Xor" class="anchor">§</a><h3 class="code-header">Xor</h3></section><div class="docblock"><p>Bitwise <code>xor</code> of the top two values on the stack.</p>
|
||
</div><section id="variant.Bra" class="variant"><a href="#variant.Bra" class="anchor">§</a><h3 class="code-header">Bra</h3></section><div class="sub-variant" id="variant.Bra.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Bra.field.target" class="section-header"><a href="#variant.Bra.field.target" class="anchor field">§</a><code>target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i16.html">i16</a></code></span><div class="docblock"><p>The relative offset to the target bytecode.</p>
|
||
</div></div></div><div class="docblock"><p>Branch to the target location if the top of stack is nonzero.</p>
|
||
</div><section id="variant.Eq" class="variant"><a href="#variant.Eq" class="anchor">§</a><h3 class="code-header">Eq</h3></section><div class="docblock"><p>Compare the top two stack values for equality.</p>
|
||
</div><section id="variant.Ge" class="variant"><a href="#variant.Ge" class="anchor">§</a><h3 class="code-header">Ge</h3></section><div class="docblock"><p>Compare the top two stack values using <code>>=</code>.</p>
|
||
</div><section id="variant.Gt" class="variant"><a href="#variant.Gt" class="anchor">§</a><h3 class="code-header">Gt</h3></section><div class="docblock"><p>Compare the top two stack values using <code>></code>.</p>
|
||
</div><section id="variant.Le" class="variant"><a href="#variant.Le" class="anchor">§</a><h3 class="code-header">Le</h3></section><div class="docblock"><p>Compare the top two stack values using <code><=</code>.</p>
|
||
</div><section id="variant.Lt" class="variant"><a href="#variant.Lt" class="anchor">§</a><h3 class="code-header">Lt</h3></section><div class="docblock"><p>Compare the top two stack values using <code><</code>.</p>
|
||
</div><section id="variant.Ne" class="variant"><a href="#variant.Ne" class="anchor">§</a><h3 class="code-header">Ne</h3></section><div class="docblock"><p>Compare the top two stack values using <code>!=</code>.</p>
|
||
</div><section id="variant.Skip" class="variant"><a href="#variant.Skip" class="anchor">§</a><h3 class="code-header">Skip</h3></section><div class="sub-variant" id="variant.Skip.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Skip.field.target" class="section-header"><a href="#variant.Skip.field.target" class="anchor field">§</a><code>target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i16.html">i16</a></code></span><div class="docblock"><p>The relative offset to the target bytecode.</p>
|
||
</div></div></div><div class="docblock"><p>Unconditional branch to the target location.</p>
|
||
</div><section id="variant.UnsignedConstant" class="variant"><a href="#variant.UnsignedConstant" class="anchor">§</a><h3 class="code-header">UnsignedConstant</h3></section><div class="sub-variant" id="variant.UnsignedConstant.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.UnsignedConstant.field.value" class="section-header"><a href="#variant.UnsignedConstant.field.value" class="anchor field">§</a><code>value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The value to push.</p>
|
||
</div></div></div><div class="docblock"><p>Push an unsigned constant value on the stack. This handles multiple
|
||
DWARF opcodes.</p>
|
||
</div><section id="variant.SignedConstant" class="variant"><a href="#variant.SignedConstant" class="anchor">§</a><h3 class="code-header">SignedConstant</h3></section><div class="sub-variant" id="variant.SignedConstant.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.SignedConstant.field.value" class="section-header"><a href="#variant.SignedConstant.field.value" class="anchor field">§</a><code>value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a></code></span><div class="docblock"><p>The value to push.</p>
|
||
</div></div></div><div class="docblock"><p>Push a signed constant value on the stack. This handles multiple
|
||
DWARF opcodes.</p>
|
||
</div><section id="variant.Register" class="variant"><a href="#variant.Register" class="anchor">§</a><h3 class="code-header">Register</h3></section><div class="sub-variant" id="variant.Register.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Register.field.register" class="section-header"><a href="#variant.Register.field.register" class="anchor field">§</a><code>register: <a class="struct" href="../struct.Register.html" title="struct gimli::Register">Register</a></code></span><div class="docblock"><p>The register number.</p>
|
||
</div></div></div><div class="docblock"><p>Indicate that this piece’s location is in the given register.</p>
|
||
<p>Completes the piece or expression.</p>
|
||
</div><section id="variant.RegisterOffset" class="variant"><a href="#variant.RegisterOffset" class="anchor">§</a><h3 class="code-header">RegisterOffset</h3></section><div class="sub-variant" id="variant.RegisterOffset.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.RegisterOffset.field.register" class="section-header"><a href="#variant.RegisterOffset.field.register" class="anchor field">§</a><code>register: <a class="struct" href="../struct.Register.html" title="struct gimli::Register">Register</a></code></span><div class="docblock"><p>The register number.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.RegisterOffset.field.offset" class="section-header"><a href="#variant.RegisterOffset.field.offset" class="anchor field">§</a><code>offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a></code></span><div class="docblock"><p>The offset to add.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.RegisterOffset.field.base_type" class="section-header"><a href="#variant.RegisterOffset.field.base_type" class="anchor field">§</a><code>base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE of the base type or 0 to indicate the generic type</p>
|
||
</div></div></div><div class="docblock"><p>Find the value of the given register, add the offset, and then
|
||
push the resulting sum on the stack.</p>
|
||
</div><section id="variant.FrameOffset" class="variant"><a href="#variant.FrameOffset" class="anchor">§</a><h3 class="code-header">FrameOffset</h3></section><div class="sub-variant" id="variant.FrameOffset.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.FrameOffset.field.offset" class="section-header"><a href="#variant.FrameOffset.field.offset" class="anchor field">§</a><code>offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a></code></span><div class="docblock"><p>The offset to add.</p>
|
||
</div></div></div><div class="docblock"><p>Compute the frame base (using <code>DW_AT_frame_base</code>), add the
|
||
given offset, and then push the resulting sum on the stack.</p>
|
||
</div><section id="variant.Nop" class="variant"><a href="#variant.Nop" class="anchor">§</a><h3 class="code-header">Nop</h3></section><div class="docblock"><p>No operation.</p>
|
||
</div><section id="variant.PushObjectAddress" class="variant"><a href="#variant.PushObjectAddress" class="anchor">§</a><h3 class="code-header">PushObjectAddress</h3></section><div class="docblock"><p>Push the object address on the stack.</p>
|
||
</div><section id="variant.Call" class="variant"><a href="#variant.Call" class="anchor">§</a><h3 class="code-header">Call</h3></section><div class="sub-variant" id="variant.Call.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Call.field.offset" class="section-header"><a href="#variant.Call.field.offset" class="anchor field">§</a><code>offset: <a class="enum" href="enum.DieReference.html" title="enum gimli::read::DieReference">DieReference</a><Offset></code></span><div class="docblock"><p>The DIE to use.</p>
|
||
</div></div></div><div class="docblock"><p>Evaluate a DWARF expression as a subroutine. The expression
|
||
comes from the <code>DW_AT_location</code> attribute of the indicated
|
||
DIE.</p>
|
||
</div><section id="variant.TLS" class="variant"><a href="#variant.TLS" class="anchor">§</a><h3 class="code-header">TLS</h3></section><div class="docblock"><p>Compute the address of a thread-local variable and push it on
|
||
the stack.</p>
|
||
</div><section id="variant.CallFrameCFA" class="variant"><a href="#variant.CallFrameCFA" class="anchor">§</a><h3 class="code-header">CallFrameCFA</h3></section><div class="docblock"><p>Compute the call frame CFA and push it on the stack.</p>
|
||
</div><section id="variant.Piece" class="variant"><a href="#variant.Piece" class="anchor">§</a><h3 class="code-header">Piece</h3></section><div class="sub-variant" id="variant.Piece.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Piece.field.size_in_bits" class="section-header"><a href="#variant.Piece.field.size_in_bits" class="anchor field">§</a><code>size_in_bits: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The size of this piece in bits.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.Piece.field.bit_offset" class="section-header"><a href="#variant.Piece.field.bit_offset" class="anchor field">§</a><code>bit_offset: <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a>></code></span><div class="docblock"><p>The bit offset of this piece. If <code>None</code>, then this piece
|
||
was specified using <code>DW_OP_piece</code> and should start at the
|
||
next byte boundary.</p>
|
||
</div></div></div><div class="docblock"><p>Terminate a piece.</p>
|
||
</div><section id="variant.ImplicitValue" class="variant"><a href="#variant.ImplicitValue" class="anchor">§</a><h3 class="code-header">ImplicitValue</h3></section><div class="sub-variant" id="variant.ImplicitValue.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ImplicitValue.field.data" class="section-header"><a href="#variant.ImplicitValue.field.data" class="anchor field">§</a><code>data: R</code></span><div class="docblock"><p>The implicit value to use.</p>
|
||
</div></div></div><div class="docblock"><p>The object has no location, but has a known constant value.</p>
|
||
<p>Represents <code>DW_OP_implicit_value</code>.
|
||
Completes the piece or expression.</p>
|
||
</div><section id="variant.StackValue" class="variant"><a href="#variant.StackValue" class="anchor">§</a><h3 class="code-header">StackValue</h3></section><div class="docblock"><p>The object has no location, but its value is at the top of the stack.</p>
|
||
<p>Represents <code>DW_OP_stack_value</code>.
|
||
Completes the piece or expression.</p>
|
||
</div><section id="variant.ImplicitPointer" class="variant"><a href="#variant.ImplicitPointer" class="anchor">§</a><h3 class="code-header">ImplicitPointer</h3></section><div class="sub-variant" id="variant.ImplicitPointer.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ImplicitPointer.field.value" class="section-header"><a href="#variant.ImplicitPointer.field.value" class="anchor field">§</a><code>value: <a class="struct" href="../struct.DebugInfoOffset.html" title="struct gimli::DebugInfoOffset">DebugInfoOffset</a><Offset></code></span><div class="docblock"><p>The <code>.debug_info</code> offset of the value that this is an implicit pointer into.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.ImplicitPointer.field.byte_offset" class="section-header"><a href="#variant.ImplicitPointer.field.byte_offset" class="anchor field">§</a><code>byte_offset: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.i64.html">i64</a></code></span><div class="docblock"><p>The byte offset into the value that the implicit pointer points to.</p>
|
||
</div></div></div><div class="docblock"><p>The object is a pointer to a value which has no actual location,
|
||
such as an implicit value or a stack value.</p>
|
||
<p>Represents <code>DW_OP_implicit_pointer</code>.
|
||
Completes the piece or expression.</p>
|
||
</div><section id="variant.EntryValue" class="variant"><a href="#variant.EntryValue" class="anchor">§</a><h3 class="code-header">EntryValue</h3></section><div class="sub-variant" id="variant.EntryValue.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.EntryValue.field.expression" class="section-header"><a href="#variant.EntryValue.field.expression" class="anchor field">§</a><code>expression: R</code></span><div class="docblock"><p>The expression to be evaluated.</p>
|
||
</div></div></div><div class="docblock"><p>Evaluate an expression at the entry to the current subprogram, and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_entry_value</code>.</p>
|
||
</div><section id="variant.ParameterRef" class="variant"><a href="#variant.ParameterRef" class="anchor">§</a><h3 class="code-header">ParameterRef</h3></section><div class="sub-variant" id="variant.ParameterRef.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ParameterRef.field.offset" class="section-header"><a href="#variant.ParameterRef.field.offset" class="anchor field">§</a><code>offset: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE to use.</p>
|
||
</div></div></div><div class="docblock"><p>This represents a parameter that was optimized out.</p>
|
||
<p>The offset points to the definition of the parameter, and is
|
||
matched to the <code>DW_TAG_GNU_call_site_parameter</code> in the caller that also
|
||
points to the same definition of the parameter.</p>
|
||
<p>Represents <code>DW_OP_GNU_parameter_ref</code>.</p>
|
||
</div><section id="variant.Address" class="variant"><a href="#variant.Address" class="anchor">§</a><h3 class="code-header">Address</h3></section><div class="sub-variant" id="variant.Address.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Address.field.address" class="section-header"><a href="#variant.Address.field.address" class="anchor field">§</a><code>address: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The offset to add.</p>
|
||
</div></div></div><div class="docblock"><p>Relocate the address if needed, and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_addr</code>.</p>
|
||
</div><section id="variant.AddressIndex" class="variant"><a href="#variant.AddressIndex" class="anchor">§</a><h3 class="code-header">AddressIndex</h3></section><div class="sub-variant" id="variant.AddressIndex.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.AddressIndex.field.index" class="section-header"><a href="#variant.AddressIndex.field.index" class="anchor field">§</a><code>index: <a class="struct" href="../struct.DebugAddrIndex.html" title="struct gimli::DebugAddrIndex">DebugAddrIndex</a><Offset></code></span><div class="docblock"><p>The index of the address in <code>.debug_addr</code>.</p>
|
||
</div></div></div><div class="docblock"><p>Read the address at the given index in `.debug_addr, relocate the address if needed,
|
||
and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_addrx</code>.</p>
|
||
</div><section id="variant.ConstantIndex" class="variant"><a href="#variant.ConstantIndex" class="anchor">§</a><h3 class="code-header">ConstantIndex</h3></section><div class="sub-variant" id="variant.ConstantIndex.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ConstantIndex.field.index" class="section-header"><a href="#variant.ConstantIndex.field.index" class="anchor field">§</a><code>index: <a class="struct" href="../struct.DebugAddrIndex.html" title="struct gimli::DebugAddrIndex">DebugAddrIndex</a><Offset></code></span><div class="docblock"><p>The index of the address in <code>.debug_addr</code>.</p>
|
||
</div></div></div><div class="docblock"><p>Read the address at the given index in `.debug_addr, and push it on the stack.
|
||
Do not relocate the address.</p>
|
||
<p>Represents <code>DW_OP_constx</code>.</p>
|
||
</div><section id="variant.TypedLiteral" class="variant"><a href="#variant.TypedLiteral" class="anchor">§</a><h3 class="code-header">TypedLiteral</h3></section><div class="sub-variant" id="variant.TypedLiteral.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.TypedLiteral.field.base_type" class="section-header"><a href="#variant.TypedLiteral.field.base_type" class="anchor field">§</a><code>base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE of the base type.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.TypedLiteral.field.value" class="section-header"><a href="#variant.TypedLiteral.field.value" class="anchor field">§</a><code>value: R</code></span><div class="docblock"><p>The value bytes.</p>
|
||
</div></div></div><div class="docblock"><p>Interpret the value bytes as a constant of a given type, and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_const_type</code>.</p>
|
||
</div><section id="variant.Convert" class="variant"><a href="#variant.Convert" class="anchor">§</a><h3 class="code-header">Convert</h3></section><div class="sub-variant" id="variant.Convert.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Convert.field.base_type" class="section-header"><a href="#variant.Convert.field.base_type" class="anchor field">§</a><code>base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE of the base type.</p>
|
||
</div></div></div><div class="docblock"><p>Pop the top stack entry, convert it to a different type, and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_convert</code>.</p>
|
||
</div><section id="variant.Reinterpret" class="variant"><a href="#variant.Reinterpret" class="anchor">§</a><h3 class="code-header">Reinterpret</h3></section><div class="sub-variant" id="variant.Reinterpret.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Reinterpret.field.base_type" class="section-header"><a href="#variant.Reinterpret.field.base_type" class="anchor field">§</a><code>base_type: <a class="struct" href="struct.UnitOffset.html" title="struct gimli::read::UnitOffset">UnitOffset</a><Offset></code></span><div class="docblock"><p>The DIE of the base type.</p>
|
||
</div></div></div><div class="docblock"><p>Pop the top stack entry, reinterpret the bits in its value as a different type,
|
||
and push it on the stack.</p>
|
||
<p>Represents <code>DW_OP_reinterpret</code>.</p>
|
||
</div><section id="variant.WasmLocal" class="variant"><a href="#variant.WasmLocal" class="anchor">§</a><h3 class="code-header">WasmLocal</h3></section><div class="sub-variant" id="variant.WasmLocal.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.WasmLocal.field.index" class="section-header"><a href="#variant.WasmLocal.field.index" class="anchor field">§</a><code>index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></code></span><div class="docblock"><p>The index of the local.</p>
|
||
</div></div></div><div class="docblock"><p>The index of a local in the currently executing function.</p>
|
||
<p>Represents <code>DW_OP_WASM_location 0x00</code>.
|
||
Completes the piece or expression.</p>
|
||
</div><section id="variant.WasmGlobal" class="variant"><a href="#variant.WasmGlobal" class="anchor">§</a><h3 class="code-header">WasmGlobal</h3></section><div class="sub-variant" id="variant.WasmGlobal.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.WasmGlobal.field.index" class="section-header"><a href="#variant.WasmGlobal.field.index" class="anchor field">§</a><code>index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></code></span><div class="docblock"><p>The index of the global.</p>
|
||
</div></div></div><div class="docblock"><p>The index of a global.</p>
|
||
<p>Represents <code>DW_OP_WASM_location 0x01</code> or <code>DW_OP_WASM_location 0x03</code>.
|
||
Completes the piece or expression.</p>
|
||
</div><section id="variant.WasmStack" class="variant"><a href="#variant.WasmStack" class="anchor">§</a><h3 class="code-header">WasmStack</h3></section><div class="sub-variant" id="variant.WasmStack.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.WasmStack.field.index" class="section-header"><a href="#variant.WasmStack.field.index" class="anchor field">§</a><code>index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.u32.html">u32</a></code></span><div class="docblock"><p>The index of the stack item. 0 is the bottom of the operand stack.</p>
|
||
</div></div></div><div class="docblock"><p>The index of an item on the operand stack.</p>
|
||
<p>Represents <code>DW_OP_WASM_location 0x02</code>.
|
||
Completes the piece or expression.</p>
|
||
</div></div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#397-813">source</a><a href="#impl-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.parse" class="method"><a class="src rightside" href="../../src/gimli/read/op.rs.html#410-812">source</a><h4 class="code-header">pub fn <a href="#method.parse" class="fn">parse</a>(bytes: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&mut R</a>, encoding: <a class="struct" href="../struct.Encoding.html" title="struct gimli::Encoding">Encoding</a>) -> <a class="type" href="type.Result.html" title="type gimli::read::Result">Result</a><<a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset>></h4></section></summary><div class="docblock"><p>Parse a single DWARF expression operation.</p>
|
||
<p>This is useful when examining a DWARF expression for reasons other
|
||
than direct evaluation.</p>
|
||
<p><code>bytes</code> points to a the operation to decode. It should point into
|
||
the same array as <code>bytecode</code>, which should be the entire
|
||
expression.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-Clone-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-Debug-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.76.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-PartialEq-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset>) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/cmp.rs.html#242">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
|
||
sufficient, and should not be overridden without very good reason.</div></details></div></details><section id="impl-Copy-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-Copy-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,</div></h3></section><section id="impl-Eq-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-Eq-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</div></h3></section><section id="impl-StructuralEq-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-StructuralEq-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a>,</div></h3></section><section id="impl-StructuralPartialEq-for-Operation%3CR,+Offset%3E" class="impl"><a class="src rightside" href="../../src/gimli/read/op.rs.html#33">source</a><a href="#impl-StructuralPartialEq-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
R: <a class="trait" href="trait.Reader.html" title="trait gimli::read::Reader">Reader</a><Offset = Offset>,
|
||
Offset: <a class="trait" href="trait.ReaderOffset.html" title="trait gimli::read::ReaderOffset">ReaderOffset</a>,</div></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Operation%3CR,+Offset%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
Offset: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-Operation%3CR,+Offset%3E" class="impl"><a href="#impl-Send-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
Offset: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-Operation%3CR,+Offset%3E" class="impl"><a href="#impl-Sync-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
Offset: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-Operation%3CR,+Offset%3E" class="impl"><a href="#impl-Unpin-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
Offset: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-Operation%3CR,+Offset%3E" class="impl"><a href="#impl-UnwindSafe-for-Operation%3CR,+Offset%3E" class="anchor">§</a><h3 class="code-header">impl<R, Offset> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.Operation.html" title="enum gimli::read::Operation">Operation</a><R, Offset><div class="where">where
|
||
Offset: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#763">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#766">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#747-749">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#756">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/core/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#803-805">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#810">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#788-790">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#795">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |