pub struct Digest { /* private fields */ }Expand description
Fixed-capacity digest bytes for either object format.
Implementations§
Source§impl Digest
impl Digest
pub fn format(self) -> ObjectFormat
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn from_bytes(format: ObjectFormat, bytes: &[u8]) -> Result<Self, HashError>
Trait Implementations§
impl Copy for Digest
impl Eq for Digest
impl StructuralPartialEq for Digest
Auto Trait Implementations§
impl Forget for Digest
impl Freeze for Digest
impl Move for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnsafeUnpin for Digest
impl UnwindSafe for Digest
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