pub struct UnhashedStr(/* private fields */);Expand description
Helper type for indexing a HashMap without allocation
Unhashed str is hashed on the fly instead of using a precalculated hash.
Useful for indexing a HashMap without needing to allocate a Box
Implementations§
Trait Implementations§
Source§impl Borrow<UnhashedStr> for &HashStr
impl Borrow<UnhashedStr> for &HashStr
Source§fn borrow(&self) -> &UnhashedStr
fn borrow(&self) -> &UnhashedStr
Immutably borrows from an owned value. Read more
Source§impl Debug for UnhashedStr
impl Debug for UnhashedStr
Source§impl<'a> From<&'a UnhashedStr> for &'a str
impl<'a> From<&'a UnhashedStr> for &'a str
Source§fn from(value: &'a UnhashedStr) -> Self
fn from(value: &'a UnhashedStr) -> Self
Converts to this type from the input type.