pub struct DigestBuilder { /* private fields */ }Expand description
Incremental raw-byte digest builder.
Implementations§
Source§impl DigestBuilder
impl DigestBuilder
Sourcepub fn update_str(&mut self, data: &str) -> &mut Self
pub fn update_str(&mut self, data: &str) -> &mut Self
Feeds a UTF-8 string into the digest.
Sourcepub fn update_json<T: Serialize + ?Sized>(
&mut self,
value: &T,
) -> Result<&mut Self, DigestError>
pub fn update_json<T: Serialize + ?Sized>( &mut self, value: &T, ) -> Result<&mut Self, DigestError>
Feeds RFC 8785 bytes for a serializable JSON value.
Sourcepub fn finalize(self) -> ContentDigest
pub fn finalize(self) -> ContentDigest
Finalizes the digest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DigestBuilder
impl RefUnwindSafe for DigestBuilder
impl Send for DigestBuilder
impl Sync for DigestBuilder
impl Unpin for DigestBuilder
impl UnsafeUnpin for DigestBuilder
impl UnwindSafe for DigestBuilder
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