<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../git2/all.html"title="show sidebar"></a></div><inputclass="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"><divid="help-button"tabindex="-1"><ahref="../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Struct <ahref="index.html">git2</a>::<wbr><aclass="struct"href="#">MergePreference</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../src/git2/lib.rs.html#631-645">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct MergePreference(<spanclass="comment">/* private fields */</span>);</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>The user’s stated preference for merges.</p>
</div></details><h2id="implementations"class="section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedconstant.NONE"class="associatedconstant"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const <ahref="#associatedconstant.NONE"class="constant">NONE</a>: Self = _</h4></section></summary><divclass="docblock"><p>No configuration was found that suggests a preferred behavior for
merge.</p>
</div></details><detailsclass="toggle"open><summary><sectionid="associatedconstant.NO_FAST_FORWARD"class="associatedconstant"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const <ahref="#associatedconstant.NO_FAST_FORWARD"class="constant">NO_FAST_FORWARD</a>: Self = _</h4></section></summary><divclass="docblock"><p>There is a <code>merge.ff=false</code> configuration setting, suggesting that
the user does not want to allow a fast-forward merge.</p>
</div></details><detailsclass="toggle"open><summary><sectionid="associatedconstant.FASTFORWARD_ONLY"class="associatedconstant"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const <ahref="#associatedconstant.FASTFORWARD_ONLY"class="constant">FASTFORWARD_ONLY</a>: Self = _</h4></section></summary><divclass="docblock"><p>There is a <code>merge.ff=only</code> configuration setting, suggesting that
the user only wants fast-forward merges.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-MergePreference-1"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-MergePreference-1"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.empty"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.empty"class="fn">empty</a>() -> Self</h4></section></summary><divclass="docblock"><p>Get a flags value with all bits unset.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.all"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.all"class="fn">all</a>() -> Self</h4></section></summary><divclass="docblock"><p>Get a flags value with all known bits set.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_bits_truncate"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.from_bits_truncate"class="fn">from_bits_truncate</a>(bits: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.u32.html">u32</a>) -> Self</h4></section></summary><divclass="docblock"><p>Convert from a bits value, unsetting any unknown bits.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_bits_retain"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.from_bits_retain"class="fn">from_bits_retain</a>(bits: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.u32.html">u32</a>) -> Self</h4></section></summary><divclass="docblock"><p>Convert from a bits value exactly.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_name"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub fn <ahref="#method.from_name"class="fn">from_name</a>(name: &<aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></h4></section></summary><divclass="docblock"><p>Get a flags value with the bits of a flag with the given name set.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_empty"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.is_empty"class="fn">is_empty</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Whether all bits in this flags value are unset.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_all"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.is_all"class="fn">is_all</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Whether all known bits in this flags value are set.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.intersects"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.intersects"class="fn">intersects</a>(&self, other: Self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Whether any set bits in a source flags value are also set in a target flags value.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.contains"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.contains"class="fn">contains</a>(&self, other: Self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Whether all set bits in a source flags value are also set in a target flags value.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.insert"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub fn <ahref="#method.insert"class="fn">insert</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The bitwise or (<code>|</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.remove"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub fn <ahref="#method.remove"class="fn">remove</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>).</p>
<p>This method is not equivalent to <code>self & !other</code> when <code>other</code> has unknown bits set.
<code>remove</code> won’t truncate <code>other</code>, but the <code>!</code> operator will.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.toggle"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub fn <ahref="#method.toggle"class="fn">toggle</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.set"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub fn <ahref="#method.set"class="fn">set</a>(&mut self, other: Self, value: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a>)</h4></section></summary><divclass="docblock"><p>Call <code>insert</code> when <code>value</code> is <code>true</code> or <code>remove</code> when <code>value</code> is <code>false</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.intersection"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.intersection"class="fn">intersection</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise and (<code>&</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.union"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.union"class="fn">union</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise or (<code>|</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.difference"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.difference"class="fn">difference</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>).</p>
<p>This method is not equivalent to <code>self & !other</code> when <code>other</code> has unknown bits set.
<code>difference</code> won’t truncate <code>other</code>, but the <code>!</code> operator will.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.symmetric_difference"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.symmetric_difference"class="fn">symmetric_difference</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.complement"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.complement"class="fn">complement</a>(self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise negation (<code>!</code>) of the bits in a flags value, truncating the result.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-MergePreference-2"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-MergePreference-2"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.iter"class="fn">iter</a>(&self) -><aclass="struct"href="../bitflags/iter/struct.Iter.html"title="struct bitflags::iter::Iter">Iter</a><<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>></h4></section></summary><divclass="docblock"><p>Yield a set of contained flags values.</p>
<p>Each yielded flags value will correspond to a defined named flag. Any unknown bits
will be yielded together as a final flags value.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter_names"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><h4class="code-header">pub const fn <ahref="#method.iter_names"class="fn">iter_names</a>(&self) -><aclass="struct"href="../bitflags/iter/struct.IterNames.html"title="struct bitflags::iter::IterNames">IterNames</a><<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>></h4></section></summary><divclass="docblock"><p>Yield a set of contained named flags values.</p>
<p>This method is like <ahref="#method.iter"><code>iter</code></a>, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-MergePreference-3"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#647-651">source</a><ahref="#impl-MergePreference-3"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><sectionid="method.is_none"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#648">source</a><h4class="code-header">pub fn <ahref="#method.is_none"class="fn">is_none</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section><sectionid="method.is_no_fast_forward"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#649">source</a><h4class="code-header">pub fn <ahref="#method.is_no_fast_forward"class="fn">is_no_fast_forward</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section><sectionid="method.is_fastforward_only"class="method"><aclass="src rightside"href="../src/git2/lib.rs.html#650">source</a><h4class="code-header">pub fn <ahref="#method.is_fastforward_only"class="fn">is_fastforward_only</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></div></details></div><h2id="trait-implementations"class="section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Binary-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-Binary-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Binary.html"title="trait core::fmt::Binary">Binary</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt-1"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.fmt-1"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Binary.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitAnd-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitAnd-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitAnd.html"title="trait core::ops::bit::BitAnd">BitAnd</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitand"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitand"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitAnd.html#tymethod.bitand"class="fn">bitand</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise and (<code>&</code>) of the
</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-1"class="associatedtype trait-impl"><ahref="#associatedtype.Output-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitAnd.html#associatedtype.Output"class="associatedtype">Output</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The resulting type after applying the <code>&</code> operator.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitAndAssign-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitAndAssign-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitAndAssign.html"title="trait core::ops::bit::BitAndAssign">BitAndAssign</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitand_assign"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitand_assign"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitAndAssign.html#tymethod.bitand_assign"class="fn">bitand_assign</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The bitwise and (<code>&</code>) of the bits in two flags values.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitOr-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitOr-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitOr.html"title="trait core::ops::bit::BitOr">BitOr</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitor"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitor"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitOr.html#tymethod.bitor"class="fn">bitor</a>(self, other: <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise or (<code>|</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-4"class="associatedtype trait-impl"><ahref="#associatedtype.Output-4"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitOr.html#associatedtype.Output"class="associatedtype">Output</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The resulting type after applying the <code>|</code> operator.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitOrAssign-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitOrAssign-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitOrAssign.html"title="trait core::ops::bit::BitOrAssign">BitOrAssign</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitor_assign"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitor_assign"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitOrAssign.html#tymethod.bitor_assign"class="fn">bitor_assign</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The bitwise or (<code>|</code>) of the bits in two flags values.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitXor-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitXor-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitXor.html"title="trait core::ops::bit::BitXor">BitXor</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitxor"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitxor"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitXor.html#tymethod.bitxor"class="fn">bitxor</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</p>
</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Output"class="associatedtype trait-impl"><ahref="#associatedtype.Output"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitXor.html#associatedtype.Output"class="associatedtype">Output</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The resulting type after applying the <code>^</code> operator.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-BitXorAssign-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-BitXorAssign-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitXorAssign.html"title="trait core::ops::bit::BitXorAssign">BitXorAssign</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.bitxor_assign"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bitxor_assign"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.BitXorAssign.html#tymethod.bitxor_assign"class="fn">bitxor_assign</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-Clone-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#method.clone"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html#tymethod.clone"class="fn">clone</a>(&self) -><aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>Returns a copy of the value. <ahref="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.77.0/src/core/clone.rs.html#169">source</a></span><ahref="#method.clone_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html#method.clone_from"class="fn">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><divclass='docblock'>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-Debug-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Extend%3CMergePreference%3E-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-Extend%3CMergePreference%3E-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.Extend.html"title="trait core::iter::traits::collect::Extend">Extend</a><<aclass="struct"href="struct.MergePreferenc
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.extend_one"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/iter/traits/collect.rs.html#376">source</a><ahref="#method.extend_one"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.Extend.html#method.extend_one"class="fn">extend_one</a>(&mut self, item: A)</h4></section></summary><spanclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><divclass='docblock'>Extends a collection with exactly one element.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.extend_reserve"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/iter/traits/collect.rs.html#384">source</a><ahref="#method.extend_reserve"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve"class="fn">extend_reserve</a>(&mut self, additional: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.usize.html">usize</a>)</h4></section></summary><spanclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><divclass='docblock'>Reserves capacity in a collection for the given number of additional elements. <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Flags-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-Flags-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="../bitflags/traits/trait.Flags.html"title="trait bitflags::traits::Flags">Flags</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedconstant.FLAGS"class="associatedconstant trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#associatedconstant.FLAGS"class="anchor">§</a><h4class="code-header">const <ahref="../bitflags/traits/trait.Flags.html#associatedconstant.FLAGS"class="constant">FLAGS</a>: &'static [<aclass="struct"href="../bitflags/traits/struct.Flag.html"title="struct bitflags::traits::Flag">Flag</a><<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>>] = _</h4></section></summary><divclass='docblock'>The set of defined flags.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Bits"class="associatedtype trait-impl"><ahref="#associatedtype.Bits"class="anchor">§</a><h4class="code-header">type <ahref="../bitflags/traits/trait.Flags.html#associatedtype.Bits"class="associatedtype">Bits</a> = <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.u32.html">u32</a></h4></section></summary><divclass='docblock'>The underlying bits type.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.bits-1"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.bits-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#tymethod.bits"class="fn">bits</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.u32.html">u32</a></h4></section></summary><divclass='docblock'>Get the underlying bits value. <ahref="../bitflags/traits/trait.Flags.html#tymethod.bits">Read more</a
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Whether any set bits in a source flags value are also set in a target flags value.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.contains-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#236-238">source</a><ahref="#method.contains-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.contains"class="fn">contains</a>(&self, other: Self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Whether all set bits in a source flags value are also set in a target flags value.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.insert-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#244-246">source</a><ahref="#method.insert-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.insert"class="fn">insert</a>(&mut self, other: Self)<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>The bitwise or (<code>|</code>) of the bits in two flags values.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.remove-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#255-257">source</a><ahref="#method.remove-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.remove"class="fn">remove</a>(&mut self, other: Self)<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>). <ahref="../bitflags/traits/trait.Flags.html#method.remove">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.toggle-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#263-265">source</a><ahref="#method.toggle-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.toggle"class="fn">toggle</a>(&mut self, other: Self)<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.set-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#271-273">source</a><ahref="#method.set-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.set"class="fn">set</a>(&mut self, other: Self, value: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a>)<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Call <ahref="../bitflags/traits/trait.Flags.html#method.insert"title="method bitflags::traits::Flags::insert"><code>Flags::insert</code></a> when <code>value</code> is <code>true</code> or <ahref="../bitflags/traits/trait.Flags.html#method.remove"title="method bitflags::traits::Flags::remove"><code>Flags::remove</code></a> when <code>value</code> is <code>false</code>.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.intersection-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#284">source</a><ahref="#method.intersection-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.intersection"class="fn">intersection</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'>The bitwise and (<code>&</code>) of the bits in two flags values.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.union-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#290">source</a><ahref="#method.union-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.union"class="fn">union</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'>The bitwise or (<code>|</code>) of the bits in two flags values.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.difference-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#299">source</a><ahref="#method.difference-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.difference"class="fn">difference</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>). <ahref="../bitflags/traits/trait.Flags.html#method.difference">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.symmetric_difference-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#305">source</a><ahref="#method.symmetric_difference-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.symmetric_difference"class="fn">symmetric_difference</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'>The bitwise exclusive-or (<code>^</code>) of the bits in two flags values.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.complement-1"class="method trait-impl"><aclass="src rightside"href="../src/bitflags/traits.rs.html#311">source</a><ahref="#method.complement-1"class="anchor">§</a><h4class="code-header">fn <ahref="../bitflags/traits/trait.Flags.html#method.complement"class="fn">complement</a>(self) -> Self</h4></section></summary><divclass='docblock'>The bitwise negation (<code>!</code>) of the bits in a flags value, truncating the result.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-FromIterator%3CMergePreference%3E-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-FromIterator%3CMergePreference%3E-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.FromIterator.html"title="trait core::iter::traits::collect::FromIterator">FromIterator</a><<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a><
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-IntoIterator-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-IntoIterator-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Item"class="associatedtype trait-impl"><ahref="#associatedtype.Item"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"class="associatedtype">Item</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The type of the elements being iterated over.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.IntoIter"class="associatedtype trait-impl"><ahref="#associatedtype.IntoIter"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"class="associatedtype">IntoIter</a> = <aclass="struct"href="../bitflags/iter/struct.Iter.html"title="struct bitflags::iter::Iter">Iter</a><<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>></h4></section></summary><divclass='docblock'>Which kind of iterator are we turning this into?</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.into_iter"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.into_iter"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"class="fn">into_iter</a>(self) -> Self::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><divclass='docblock'>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/1.77.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-LowerHex-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-LowerHex-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.LowerHex.html"title="trait core::fmt::LowerHex">LowerHex</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt-3"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.fmt-3"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.LowerHex.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter
</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-2"class="associatedtype trait-impl"><ahref="#associatedtype.Output-2"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/ops/bit/trait.Not.html#associatedtype.Output"class="associatedtype">Output</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The resulting type after applying the <code>!</code> operator.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Octal-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-Octal-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Octal.html"title="trait core::fmt::Octal">Octal</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt-2"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.fmt-2"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Octal.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-PartialEq-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-PartialEq-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.eq"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#method.eq"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/cmp/trait.PartialEq.html#tymethod.eq"class="fn">eq</a>(&self, other: &<aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ne"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.77.0/src/core/cmp.rs.html#242">source</a></span><ahref="#method.ne"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/cmp/trait.PartialEq.html#method.ne"class="fn">ne</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&Rhs</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='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><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-PublicFlags-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-PublicFlags-for-MergePreference"class="anchor">§</a><h3class="code-header">impl PublicFlags for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Primitive"class="associatedtype trait-impl"><ahref="#associatedtype.Primitive"class="anchor">§</a><h4class="code-header">type <ahref="#associatedtype.Primitive"class="associatedtype">Primitive</a> = <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.u32.html">u32</a></h4></section></summary><divclass='docblock'>The type of the underlying storage.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Internal"class="associatedtype trait-impl"><ahref="#associatedtype.Internal"class="anchor">§</a><h4class="code-header">type <ahref="#associatedtype.Internal"class="associatedtype">Internal</a> = InternalBitFlags</h4></section></summary><divclass='docblock'>The type of the internal field on the generated flags type.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Sub-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-Sub-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/arith/trait.Sub.html"title="trait core::ops::arith::Sub">Sub</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.sub"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.sub"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/arith/trait.Sub.html#tymethod.sub"class="fn">sub</a>(self, other: Self) -> Self</h4></section></summary><divclass="docblock"><p>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>).</p>
</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-3"class="associatedtype trait-impl"><ahref="#associatedtype.Output-3"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/ops/arith/trait.Sub.html#associatedtype.Output"class="associatedtype">Output</a> = <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h4></section></summary><divclass='docblock'>The resulting type after applying the <code>-</code> operator.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-SubAssign-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-SubAssign-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/ops/arith/trait.SubAssign.html"title="trait core::ops::arith::SubAssign">SubAssign</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.sub_assign"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.sub_assign"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign"class="fn">sub_assign</a>(&mut self, other: Self)</h4></section></summary><divclass="docblock"><p>The intersection of a source flags value with the complement of a target flags value (<code>&!</code>).</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-UpperHex-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#impl-UpperHex-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.UpperHex.html"title="trait core::fmt::UpperHex">UpperHex</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt-4"class="method trait-impl"><aclass="src rightside"href="../src/git2/lib.rs.html#631-645">source</a><ahref="#method.fmt-4"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.UpperHex.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter.</div></details></div></details><sectionid="impl-Copy-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-Copy-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Copy.html"title="trait core::marker::Copy">Copy</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section><sectionid="impl-Eq-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-Eq-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section><sectionid="impl-StructuralPartialEq-for-MergePreference"class="impl"><aclass="src rightside"href="../src/git2/lib.rs.html#633">source</a><ahref="#impl-StructuralPartialEq-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.StructuralPartialEq.html"title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section></div><h2id="synthetic-implementations"class="section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-RefUnwindSafe-for-MergePreference"class="impl"><ahref="#impl-RefUnwindSafe-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section><sectionid="impl-Send-for-MergePreference"class="impl"><ahref="#impl-Send-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="struct.MergePreference.html"title="struct git2::MergePreference">MergePreference</a></h3></section><sectionid="impl-Sync-for-MergePreference"class="impl"><ahref="#impl-Sync-for-MergePreference"class="anchor">§</a><h3class="code-header">impl <acla
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/any.rs.html#141">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/1.77.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/borrow.rs.html#208">source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/borrow.rs.html#210">source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.77.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/borrow.rs.html#216">source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/borrow.rs.html#217">source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.77.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#764">source</a><ahref="#impl-From%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#767">source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#747-749">source</a><ahref="#impl-Into%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T<divclass="where">where
<code><ahref="https://doc.rust-lang.org/1.77.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><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToOwned-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/alloc/borrow.rs.html#83-85">source</a><ahref="#impl-ToOwned-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Owned"class="associatedtype trait-impl"><ahref="#associatedtype.Owned"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="associatedtype">Owned</a> = T</h4></section></summary><divclass='docblock'>The resulting type after obtaining ownership.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/alloc/borrow.rs.html#88">source</a><ahref="#method.to_owned"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fn">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/alloc/borrow.rs.html#92">source</a><ahref="#method.clone_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fn">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><divclass='docblock'>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.77.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#804-806">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#811">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#789-791">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#796">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>