pub struct IndexEncoder<'a> { /* private fields */ }Expand description
An allocation-free cursor for the same bytes as write_index. Metadata must
remain immutable until EOF. Each pull copies at most one field (32 bytes),
regardless of the supplied buffer size; zero means complete, never pending.
Construction checks metadata before output. It does not authenticate a pack.
Implementations§
Source§impl<'a> IndexEncoder<'a>
impl<'a> IndexEncoder<'a>
pub fn new( entries: &'a [IndexEntry], pack_checksum: ObjectId, ) -> Result<IndexEncoder<'a>, Error>
Auto Trait Implementations§
impl<'a> Freeze for IndexEncoder<'a>
impl<'a> RefUnwindSafe for IndexEncoder<'a>
impl<'a> Send for IndexEncoder<'a>
impl<'a> Sync for IndexEncoder<'a>
impl<'a> Unpin for IndexEncoder<'a>
impl<'a> UnsafeUnpin for IndexEncoder<'a>
impl<'a> UnwindSafe for IndexEncoder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more