pub struct ContainerHasher { /* private fields */ }Expand description
Incremental hardware-accelerated container-trailer hasher for non-object
Git container files (.git/index, .pack, .idx, commit-graph,
multi-pack-index).
Wraps ring::digest::Context so streaming writers can compute container
trailers incrementally without buffering whole container files in memory.
OBJ-004 invariant: NEVER use this type to compute or verify Git object
OIDs (blob, tree, commit, tag). All Git object identity MUST use
hash_object or Hasher (sha1collisiondetection).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ContainerHasher
impl Freeze for ContainerHasher
impl Move for ContainerHasher
impl RefUnwindSafe for ContainerHasher
impl Send for ContainerHasher
impl Sync for ContainerHasher
impl Unpin for ContainerHasher
impl UnsafeUnpin for ContainerHasherwhere
&'static Algorithm: UnsafeUnpin,
impl UnwindSafe for ContainerHasherwhere
&'static Algorithm: UnwindSafe,
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