pub struct HashWrapper<T>(pub T);Expand description
Wrapper type to update hasher using the TL representation of type T.
Tuple Fields§
§0: TImplementations§
Source§impl<T> HashWrapper<T>where
T: TlWrite,
impl<T> HashWrapper<T>where
T: TlWrite,
Sourcepub fn update_hasher<H: Update>(&self, engine: &mut H)
pub fn update_hasher<H: Update>(&self, engine: &mut H)
Updates the specified hasher this the TL representation of inner data.
Trait Implementations§
Source§impl<T> Hash for HashWrapper<T>where
T: TlWrite,
impl<T> Hash for HashWrapper<T>where
T: TlWrite,
Source§impl<T: PartialEq> PartialEq for HashWrapper<T>
impl<T: PartialEq> PartialEq for HashWrapper<T>
impl<T: Eq> Eq for HashWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for HashWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for HashWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for HashWrapper<T>where
T: Send,
impl<T> Sync for HashWrapper<T>where
T: Sync,
impl<T> Unpin for HashWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for HashWrapper<T>where
T: 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