) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Insert a single object. For an optimal pack it’s mandatory to insert
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.insert_tree"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#42-47">source</a><h4class="code-header">pub fn <ahref="#method.insert_tree"class="fn">insert_tree</a>(&mut self, id: <aclass="struct"href="struct.Oid.html"title="struct git2::Oid">Oid</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Insert a root tree object. This will add the tree as well as all
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.insert_commit"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#51-56">source</a><h4class="code-header">pub fn <ahref="#method.insert_commit"class="fn">insert_commit</a>(&mut self, id: <aclass="struct"href="struct.Oid.html"title="struct git2::Oid">Oid</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Insert a commit object. This will add a commit as well as the completed
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.insert_walk"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#60-65">source</a><h4class="code-header">pub fn <ahref="#method.insert_walk"class="fn">insert_walk</a>(&mut self, walk: &mut <aclass="struct"href="struct.Revwalk.html"title="struct git2::Revwalk">Revwalk</a><'_>) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Insert objects as given by the walk. Those commits and all objects they
) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Recursively insert an object and its referenced objects. Insert the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.write_buf"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#80-85">source</a><h4class="code-header">pub fn <ahref="#method.write_buf"class="fn">write_buf</a>(&mut self, buf: &mut <aclass="struct"href="struct.Buf.html"title="struct git2::Buf">Buf</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Write the contents of the packfile to an in-memory buffer. The contents
F: <aclass="trait"href="https://doc.rust-lang.org/1.80.0/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(&[<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u8.html">u8</a>]) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><divclass="docblock"><p>Create the new pack and pass each object to the callback.</p>
F: <aclass="trait"href="https://doc.rust-lang.org/1.80.0/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="enum"href="enum.PackBuilderStage.html"title="enum git2::PackBuilderStage">PackBuilderStage</a>, <aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>, <aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a> + 'repo,</div></h4></section></summary><divclass="docblock"><p><code>progress</code> will be called with progress information during pack
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.unset_progress_callback"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#132-142">source</a><h4class="code-header">pub fn <ahref="#method.unset_progress_callback"class="fn">unset_progress_callback</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a>, <aclass="struct"href="struct.Error.html"title="struct git2::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Remove the current progress callback. See <code>set_progress_callback</code> to
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.set_threads"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#147-149">source</a><h4class="code-header">pub fn <ahref="#method.set_threads"class="fn">set_threads</a>(&mut self, threads: <aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a></h4></section></summary><divclass="docblock"><p>Set the number of threads to be used.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.object_count"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#152-154">source</a><h4class="code-header">pub fn <ahref="#method.object_count"class="fn">object_count</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a></h4></section></summary><divclass="docblock"><p>Get the total number of objects the packbuilder will write out.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.written"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#157-159">source</a><h4class="code-header">pub fn <ahref="#method.written"class="fn">written</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a></h4></section></summary><divclass="docblock"><p>Get the number of objects the packbuilder has already written out.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.hash"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#166-172">source</a><h4class="code-header">pub fn <ahref="#method.hash"class="fn">hash</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="struct.Oid.html"title="struct git2::Oid">Oid</a>></h4></section><spanclass="item-info"><divclass="stab deprecated"><spanclass="emoji">👎</span><span>Deprecated: use <code>name()</code> to retrieve the filename</span></div></span></summary><divclass="docblock"><p>Get the packfile’s hash. A packfile’s name is derived from the sorted
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.name"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#181-183">source</a><h4class="code-header">pub fn <ahref="#method.name"class="fn">name</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the unique name for the resulting packfile.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.name_bytes"class="method"><aclass="src rightside"href="../src/git2/packbuilder.rs.html#189-191">source</a><h4class="code-header">pub fn <ahref="#method.name_bytes"class="fn">name_bytes</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&[<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.u8.html">u8</a>]></h4></section></summary><divclass="docblock"><p>Get the unique name for the resulting packfile, in bytes.</p>
<code><ahref="https://doc.rust-lang.org/1.80.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-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#805-807">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.80.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.80.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"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.80.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.80.0/src/core/convert/mod.rs.html#812">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.80.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.80.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.80.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.80.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.80.0/src/core/convert/mod.rs.html#790-792">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.80.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.80.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-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.80.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.80.0/src/core/convert/mod.rs.html#797">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.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.80.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.80.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>