pub(crate) struct StrHasher<T: CheapCloneStr>(pub T);
Expand description
Wrap an AsRef<str>
type with a type which implements Hash by first
deferring to the underlying &str
’s implementation of Hash.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: CheapCloneStr> Hash for StrHasher<T>
impl<T: CheapCloneStr> Hash for StrHasher<T>
Source§impl<T: CheapCloneStr> Ord for StrHasher<T>
impl<T: CheapCloneStr> Ord for StrHasher<T>
Source§impl<T: CheapCloneStr> PartialEq for StrHasher<T>
impl<T: CheapCloneStr> PartialEq for StrHasher<T>
Source§impl<T: CheapCloneStr> PartialOrd for StrHasher<T>
impl<T: CheapCloneStr> PartialOrd for StrHasher<T>
impl<T: CheapCloneStr> Eq for StrHasher<T>
Auto Trait Implementations§
impl<T> Freeze for StrHasher<T>where
T: Freeze,
impl<T> RefUnwindSafe for StrHasher<T>where
T: RefUnwindSafe,
impl<T> Send for StrHasher<T>where
T: Send,
impl<T> Sync for StrHasher<T>where
T: Sync,
impl<T> Unpin for StrHasher<T>where
T: Unpin,
impl<T> UnwindSafe for StrHasher<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