Struct hydrate_base::StringHash
source · pub struct StringHash { /* private fields */ }
Expand description
Store a hash and optionally the string used to create it. The string may not be available if:
- The hash was created directly without a string
- The
strip-stringhash-strings
feature is enabled in the crate
This allows for debugging ease normally but can be used in release to save memory and avoid leaking data in strings
Implementations§
Trait Implementations§
source§impl Clone for StringHash
impl Clone for StringHash
source§fn clone(&self) -> StringHash
fn clone(&self) -> StringHash
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StringHash
impl Debug for StringHash
source§impl Hash for StringHash
impl Hash for StringHash
source§impl PartialEq for StringHash
impl PartialEq for StringHash
impl Eq for StringHash
Auto Trait Implementations§
impl RefUnwindSafe for StringHash
impl Send for StringHash
impl Sync for StringHash
impl Unpin for StringHash
impl UnwindSafe for StringHash
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