pub struct Md5 { /* private fields */ }
Implementations§
Source§impl Md5
impl Md5
pub fn new() -> Self
Sourcepub fn consume(&self, data: &[u8]) -> Self
pub fn consume(&self, data: &[u8]) -> Self
Returns a new Md5 object with the updated state of the md5 calculation It means that this function is pure (no mutations)
§Example
let mut md5 = md5_core::Md5::new();
md5 = md5.consume(b"hello");
Auto Trait Implementations§
impl Freeze for Md5
impl RefUnwindSafe for Md5
impl Send for Md5
impl Sync for Md5
impl Unpin for Md5
impl UnwindSafe for Md5
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