pub struct ResolvedDigest<H: Copy> {
pub handle: H,
pub width: NonZeroUsize,
}Expand description
Copyable resolved capability and fixed output width. No output is allocated while resolving, and an unsupported capability is represented by None.
Fields§
§handle: HProvider-owned selected algorithm handle, not a second engine.
width: NonZeroUsizeFixed output width used to check expected data before hashing.
Trait Implementations§
impl<H: Copy + Copy> Copy for ResolvedDigest<H>
Auto Trait Implementations§
impl<H> Freeze for ResolvedDigest<H>where
H: Freeze,
impl<H> RefUnwindSafe for ResolvedDigest<H>where
H: RefUnwindSafe,
impl<H> Send for ResolvedDigest<H>where
H: Send,
impl<H> Sync for ResolvedDigest<H>where
H: Sync,
impl<H> Unpin for ResolvedDigest<H>where
H: Unpin,
impl<H> UnsafeUnpin for ResolvedDigest<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for ResolvedDigest<H>where
H: 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